Android - How i can display an Excel table into a textview?

I'm new in Android world and of course in this community. I'm searching a way to import my data table from excel file in a scrollable textview. Therefore, since I already tried this html solution :

String htmlText = "html formatted text"

TextView htmlTextView = (TextView)findViewById(R.id.html_text);
htmlTextView.setText(Html.fromHtml(htmlText));

This solution is half-working.The html formatted code isn't displayed properly and the effort to translate every table (about 300 tables) in html code is too high.

I can't find any other good solution. Please give me some tips to do this stuff.

Thanks.

Answers


I solved the problem creating an Sqlite db containing the whole data set and then i displayed them with a custom listView . The initial way no worth the work and the final solution is , of course, more smart and quick.


Need Your Help

I want to zoom & center a Google map enough to fit a whole block

google-maps google-maps-api-3 gis google-static-maps

Given an address, is there a way to fetch a static Google map with certain parameters in order to show the entire block including the surrounding streets?

RSpec testing with followerships / friendships has many through users

ruby-on-rails testing rspec has-many-through

I inspired myself with the following link, http://railscasts.com/episodes/163-self-referential-association, but the rspec testing is not coming easy.