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. Android prebuilt toolchain does not work with busybox

This doesn't seem to be a kernel question. I guess that
android-porting might be a closer hit for what you're trying to do,
though in general it seems to be a good bit outside of the core
android realm.

I'm sure that someone there will comment on whether the root partition
is appropriate or whether the system partition would make more sense.

Finally, when you post on a more appropriate list, be sure to include
a relevant sample of the kind of error you're seeing. Without that
there's little chance that anyone will be able to help.

Cheers,
JBQ

On Sat, Mar 14, 2009 at 9:51 AM, neilnguyen_2...@yahoo.com





-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

2. Have you seen a cancelled purchase in the same minute?

Had 2 today, 1 cancelled because of failed authorization.

On Fri, Mar 13, 2009 at 9:02 PM, Streets Of Boston









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

3. java.net.BindException: Permissions do not allow action on socket

4. seeking developer who included the "geo" URI scheme

5. PV ColorConvert codec usage problem

6. Looking for an example of using state with a custom control

7. Android File Upload (PHP)