WebView + Gears

by Evan Ruff » Mon, 29 Jun 2009 10:52:40 GMT


Sponsored Links
 Hey guys,

I was wondering if I can use the Gears Toolkit within WebView? I heard
a nasty rumor that it was not available in WebView.

If Gears is not available, what other storage mechanisms/paradigms are
recommended?

Thanks!

Evan
--~--~---------~--~----~------------~-------~--~----~



WebView + Gears

by Mark Murphy » Mon, 29 Jun 2009 19:04:02 GMT


 


At least as of Android 1.1, it was not available in WebView, and I am
not aware that situation has changed.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android App Developer Books:  http://commonsware.com/books.html 

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


WebView + Gears

by Evan Ruff » Mon, 29 Jun 2009 20:29:50 GMT


 Huh, that seems kind of like a curious decision.

So, in order to use WebView and have persistent storage, I have to use
the Javascript -> Android Interface specifically, then either expose
standard getDB, executeStatement, getResultSet in
WebView#addJavascriptInterface() ?

Also Mark, thanks for all your help. I really appreciate you answering
my questions so quickly! I have to say that without your help the
learning curve for Android Development would be insurmountable.

E





--~--~---------~--~----~------------~-------~--~----~



WebView + Gears

by Mark Murphy » Mon, 29 Jun 2009 20:40:46 GMT


 


Well, I'd wrap the APIs in my own business rules, for input validation
and such, rather than expose the raw Android APIs.

And once the Android edition of WebKit is up on HTML5, I imagine you'll
get much of Gearsy goodness without the need for the plugin.

As to why the plugin is not available for WebView, I have no idea.


You're very welcome!

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android Development Wiki:  http://wiki.andmob.org 

--~--~---------~--~----~------------~-------~--~----~



WebView + Gears

by Evan Ruff » Mon, 29 Jun 2009 20:42:58 GMT


 Well, the whole point was kind of to be able to take my exisiting GWT/
Gears Application and fire it down into a WebView Component to gain
more control over the chrome, resource loading, etc.

It doesn't look like that's really going to work with this
implementation!

E





--~--~---------~--~----~------------~-------~--~----~



WebView + Gears

by Mark Murphy » Mon, 29 Jun 2009 21:22:39 GMT


 


Ah.


Yeah, probably not. Long-term, HTML5 will probably be the answer.
Short-term, you're looking at coding changes.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Need help for your Android OSS project?  http://wiki.andmob.org/hado 

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Driving Distance between two Address

Hi,
I am trying to find if there is something in the 1.0 SDK API that I
can use to get the driving distance between two physical addresses?

Please help.

Thanks,
Siva
--~--~---------~--~----~------------~-------~--~----~

2. Listen For Webpage Changes

I am trying to create a web-based chat program.  I would like to setup
the program so that it can "listen" for changes on a web page.  When
the user's text is posted it will be written to the page.  Then, when
a user from the web interface posts it will be posted to that same
file (this will be taken care of by a session id).  So what I want to
happen is that my Android program should listen for "changes" in the
webpage they are posting to.  How would I go about that?
--~--~---------~--~----~------------~-------~--~----~

3. Urgent: MapActivity - Couldn't get connection factory client (API key does not work)

4. Attaching G1 to adb

5. delete my app on G1

6. Server timeouts while attempting download android source

7. Installing Android on different Handsets than G1?