I just downloaded this library ( http://mathscribe.com/author/jqmath.html ) to display equations. Now I have my equation in an html document. So far so good. My question is:
Can I just load that html document in a textview in my android app?
If so, where do I have to place those the html document and the jquery library in eclipse?
this tut might be useful
http://www.mobiledevelopersolutions.com/home/start/included-demo-apps
and you may have a similar problem so consider the following
Help using JQuery in Android WebView
You can display HTML content into a WebView control in your Android app.
You can place the html document into the app assets.
Related
I am trying to implement reading a PDF within an Android app. I want to hide particular words from it.
I have downloaded a PDF viewer library. It opens properly but am not sure whether it is possible to hide words in that document.
Is there any library available that can do this?
Please help me!
Thanks in advance.
May be you are using muPDF Library and seriously muPDF or other libraries which renders PDF uses Images for rendering data they are not in text format so the modifications you want will be pretty hard to do so.
You may use iText Library for this, itext Library can extract the text from PDF and then you show the text as you want.
Let's say I have an HTML page which has CSS bound, all parsed from JSON data; is there a way to reproduce exactly ( with responsivity as well ) the same visualization in an android application with no webview ?
My goal is to have a html product that I can see also on an application, but with native elements.
EDIT
maybe this semplifies the situation: how to share HTML between mobile and web?
textview.setText(Html.fromHtml(HTML_STRING));
I am trying to add a "help" screen to my application. I inserted all of my text in, but I can't make it look how I want. Is it possible to use html to style and organize my text?
Yes you can create Html file in assets and use that into WebView. WebView for a HTML page display in Android app is a very good example for that.
You can also refer Android WebView Complete Example Tutorial
I have Google Spreadsheet, it update data every few minutes
I have it published as a html page
I want to import that from that html page to phonegap
google doc support Android XML as well.
how can I read text from html into phonegap which supports html
Thanks
IIRC you can get Google Docs spreadsheets as JSON fairly easily.
This is the only link I could find in my bookmarks for it, but it should get you started: http://david-burger.blogspot.com.au/2009/03/display-google-docs-spreadsheet-data-on.html
I have read the example for Rss Parsing from the ibm site.(http://www.ibm.com/developerworks/opensource/library/x-android/).
In this example,the rss are shown in a listview and then,if you press one announcement you can see it in the web browser of the device.How could i see them in the app,with no use of the device browser?
Thanks a lot
Create a layout with a WebView then load the URL from each "announcement" using WebView.loadUrl.
I'm a little confused but you seem to have answered your own question.
You say you don't want to use the web browser on the device but the example in your question doesn't use the browser. It does exactly what you're asking for.
The idea is that you download the html from the website and then use the parser to break it up into separate "announcements" and store them in list view items in your program.
I have done a bit of this type of thing myself in android. I used jsoup java library, which makes breaking the html into the bits you want to display really easy.
If you want some more help I can give you an example of an app I made that pulls movie times from google.com/movies as an example. here are links to the classes where I did the html download and parse:
ScreenScraper.java
HtmlParser.java