classes for downloading and parsing web pages? - Android Software Development

I'm working on buildling a few different web site and forum viewers. I need to download the HTML files, then pull certain elements and id's out to be displayed in the app. I can't figure out how to do either of these though -_- , which classes could I use to download and parse web pages?

Related

Help With Finding the right Program if it Exsists

I have tried searching the formus but could not find the answer.
What i want to do is have create a number of text (word ) documents.
And then be able to search for a certain page.
The same as looking at the contents page in a book and being able to select the relavant document.
I suppose like making a e-book with a contents page that you can tap a page and go straight to the selected page.
Any answers.
Many thanks,,,,
Not too sure how you want to go about this, do you want to create and edit and search on your pda? or create/edit on a pc then download and search using your pda?
If its the last option, there are many many many ways -- a few might be, create a master word doc and link to several 'sub' docs each one is an individual file, excel files can have text boxes inserted, say one per worksheet tab and it has data search facilities built in. FrontPage or NVU would allow simple html docs (web pages) to be created and linked via an index page and useable via PIE.
The list goes on...
A few specifics might help pin it down.

Excel mobile & web queries - new app opp?

I would like to use Excel Mobile in my Diamond to retrieve data found on web pages - this is something I can do easily on my desktop pc, but not on Excel Mobile. Is there a workaround - ie can I save a web page as an html file that can be then read by ExcMob? Or maybe even a different spreadsheet that allows web access/data retrieval?
If neither, is this something that would interest anyone on this forum to take a look at?
Thanks
Nikos
Not sure if this is what you want but its much better than excel mobile (not freeware)....
http://www.softmaker.com/english/ofp_en.htm
Excel mobile
Thanks Omareo for the suggestion. It looks good but the site has no information on the specific feature I am looking for. Have you used it? If so, can you retrieve web data (from Yahoo for instance) on to the spreadsheet via a query?
Im really not sure about that, but you can download a trial
http://www.softmaker.com/english/ofpdemo_en.htm

[Q] download gdocs spreadsheet? [SOLVED]

Seems like a simple thing, but I can't find a good solution.
I have some gdocs spreadsheets that I want to download (as xls or ods) and then edit via thinkfree. Yes I know you can do gdocs spreadsheets online via browser on my sgt. However, the gdocs spreadsheet mobile is not to my liking.
There are several Market apps that do downloading or synching of gdocs to/from android. A couple I have tried are 'my docs' and 'gdocs' but these don't support spreadsheets or I couldnt figure out how to make them do spreadsheets; they worked ok for text docs.
The online spreadsheat, on a desktop, does have a good save as feature. However, google is too smart and won't let me use the desktop experience from my sgt, even when I ask (nicely).
And, I prefer a low or no cost solution. I do see that Documents To Go suggests that you can do this; that isn't low/no cost.
Any other options?
Oh I tried think free online, too. Despite having some sort of 'login with google account' feature; I didnt see how it provides links or other techniques for getting at my gdocs. Maybe I am doing it wrong. Oh and I'd like to avoid signing up for another online service too. Besides I do shared authoring of some gdocs; no way could I get others to switch to a new online docs service.
___________
Found a solution. Reading closely the 'not suppurted browser' page, you can add an override flag (to the submitted url) that instructs the full google docs web experience to skip th browser check. By doing this, I can get the docs browser page of google docs that has a control that allows me to download my spreadsheets.
The url is like:
https://docs.google.com/DocAction?browserok=true#home
You need to add an app like 'Download all Files' so that the stock browser will save the file.
Hope this helps someone else!
use full desktop mode in your browser,
downlaod FIREFOX, and use it to download /open with think free
firefox is the only android broswer that lets me properly download/OPEN WITH by clicking on a link and I can select which app.
;-)
I think office suite pro will perfectly fit your need. After 30days of trial you can remove and re_install the app. Have Fun!

Best approach for loading website data into android app (without webview)?

Hi,
I am wondering what possible ways would be for loading a simple website into my app. My first thought is using a WebView, but I would like a dynamic app, while webview takes some time when loading between pages and links.
Is a common solution to load the html resources locally, from let say the assets folder? Than I could use AsyncTask to keep the files up to date and whenever the app starts it would load and work much quickly.
Or should I use HTTP Requests and parse the external Html document?
What would be the most situable solution for this kind of app?
Thanks,
Ved
vedtam said:
Hi,
I am wondering what possible ways would be for loading a simple website into my app. My first thought is using a WebView, but I would like a dynamic app, while webview takes some time when loading between pages and links.
Is a common solution to load the html resources locally, from let say the assets folder? Than I could use AsyncTask to keep the files up to date and whenever the app starts it would load and work much quickly.
Or should I use HTTP Requests and parse the external Html document?
What would be the most situable solution for this kind of app?
Thanks,
Ved
Click to expand...
Click to collapse
I think it's probably a decision best made by yourself. You have not said what type of data ? Cause really you should be wanting the minimal amount required. My app uses lots of data from my server for things like themes, but these come direct from SQL Database
deanwray said:
I think it's probably a decision best made by yourself. You have not said what type of data ? Cause really you should be wanting the minimal amount required. My app uses lots of data from my server for things like themes, but these come direct from SQL Database
Click to expand...
Click to collapse
Hi deanwray,
Thanks for your reply. I made some more researching and I have realised that my best bet is SQL, as you said.
Do you request data in your app directly from the online mySql database generally? I have read about a technique on downloading the data from the online database and converting it to SQLite (which is the local database on android) inside the application. This would be really cool, would really boost performance.
ved.
vedtam said:
Hi deanwray,
Thanks for your reply. I made some more researching and I have realised that my best bet is SQL, as you said.
Do you request data in your app directly from the online mySql database generally? I have read about a technique on downloading the data from the online database and converting it to SQLite (which is the local database on android) inside the application. This would be really cool, would really boost performance.
ved.
Click to expand...
Click to collapse
well my app uses a hosted database for
Online Theme Data (thumbnails store in just web space)
Settings Overrides (settings that I may have to force on the app)
Announcements ( Messages that trigger dialogs, adverts, html boxes)
Purchase info
other stuff that I forget
Any database that I access online I cache data local in cache sqlite database
So lets say the most complex things is the purchase list... a rough flow is as follows :
Get idents from online purchasable list
get descriptions and titles from idents
store local database
Simultaneous query of google IAP data from play to get locale info and pricing (along with IAP ident)
Store that in same local db
Display to user at, initial data, updated data and price additions
The database online is accessed via php (not a fan of that but hey ho, not really a programmer so there ya go) and given to the app as encoded JSON
I'm currently considering an ORM system like greenDAO or something like that...but not looked too much into it currently.
The themes database is quite good as it hold descriptions of views, shading, dimensions etc, these too are never displayed to the user from the server, but are cached local, cause failure of internet and failure of sync should not prevent any vital parts of what appears to be an offline app from working (e.g. my Smart SMS app)
Hope that helps, I could pass you the php although tis quite simple, there are security issues to look out for though
deanwray said:
well my app uses a hosted database for
Online Theme Data (thumbnails store in just web space)
Settings Overrides (settings that I may have to force on the app)
Announcements ( Messages that trigger dialogs, adverts, html boxes)
Purchase info
other stuff that I forget
Any database that I access online I cache data local in cache sqlite database
So lets say the most complex things is the purchase list... a rough flow is as follows :
Get idents from online purchasable list
get descriptions and titles from idents
store local database
Simultaneous query of google IAP data from play to get locale info and pricing (along with IAP ident)
Store that in same local db
Display to user at, initial data, updated data and price additions
The database online is accessed via php (not a fan of that but hey ho, not really a programmer so there ya go) and given to the app as encoded JSON
I'm currently considering an ORM system like greenDAO or something like that...but not looked too much into it currently.
The themes database is quite good as it hold descriptions of views, shading, dimensions etc, these too are never displayed to the user from the server, but are cached local, cause failure of internet and failure of sync should not prevent any vital parts of what appears to be an offline app from working (e.g. my Smart SMS app)
Hope that helps, I could pass you the php although tis quite simple, there are security issues to look out for though
Click to expand...
Click to collapse
Thanks for the details! It was really useful to see your workflow, I was not sure about the direction I should choose for my app development, but now is much clearer.
Thanks!
ved
Hy deanwray,
I could use a litle help, regarding the methods you have adopted for synchronising your online database with your apps local database.
I have reached a point where my database is ready, I am parsing (via JSON) data from a local xml file, and inserting it into my SQLite database. Everything works ok, but I need to get the data from my online mySql server into my app on a regular basis.
I have found threads wich mentiones the Android sync adapter, and others where people use the HTTPClient to pass data to/from the server. To be hones I am a bit confused, I would really glad if you could light me up on what would be the best approach, or what works for you the best
Thanks!!
vedtam said:
Hy deanwray,
I could use a litle help, regarding the methods you have adopted for synchronising your online database with your apps local database.
I have reached a point where my database is ready, I am parsing (via JSON) data from a local xml file, and inserting it into my SQLite database. Everything works ok, but I need to get the data from my online mySql server into my app on a regular basis.
I have found threads wich mentiones the Android sync adapter, and others where people use the HTTPClient to pass data to/from the server. To be hones I am a bit confused, I would really glad if you could light me up on what would be the best approach, or what works for you the best
Thanks!!
Click to expand...
Click to collapse
If you want do operate online database server then generally php is used.there is a tutorial on androidhive check it . you will get the answer
Sent from my GT-S5570 using XDA Premium 4 mobile app
vedtam said:
Hy deanwray,
I could use a litle help, regarding the methods you have adopted for synchronising your online database with your apps local database.
I have reached a point where my database is ready, I am parsing (via JSON) data from a local xml file, and inserting it into my SQLite database. Everything works ok, but I need to get the data from my online mySql server into my app on a regular basis.
I have found threads wich mentiones the Android sync adapter, and others where people use the HTTPClient to pass data to/from the server. To be hones I am a bit confused, I would really glad if you could light me up on what would be the best approach, or what works for you the best
Thanks!!
Click to expand...
Click to collapse
if you need a real time chat hit me up on hangouts https://plus.google.com/+DeanWray/

Issues trying to import an HTML signature into default email app

Hi
I am prepping a few dozen S7 edge phones for a company.
Their default HTML signature includes images which act as hyperlinks
On the iPhones I could just copy/paste the signature.
But on the S7 nothing seems to work right.
When I paste the signature, I usually get : Max characters exceeded. The problem seems to center around images. The default email app doesn't appear to understand remotely hosted images. It treats images as local binaries .
I can paste HTML code into the signature editor, it doesn't render. So what is the smart way to paste a formatted signature into the default email app?
use hub transport or code two and add on server not phone

Categories

Resources