Hi,

been a bit busy.

See, the basic idea is to have a javascript function callback into
native java code.
This java code then runs on a separate thread so that the UI thread
isn't blocked up. This thread runs some function that utilizes the
HTTP* classes in android to retrieve data over an http connection.
Then this java code can call back into javascript with the processed
data as a parameter.

Currently I don't think there is any implementation posted on the
internet. The only impl is what I've done I think so, but u wouldn't
want to see that, its a real hack and not intelligible easily, So if u
require help with the Http coding in the native layer, please drop me
a mail, i'll try to "refine" my implementation and mail

Cheers,
Earlence



On Jan 30, 9:21 am, kevin <[email protected]> wrote:
> Anyone can help on this?
>
> Thanks,
> Kevin
>
> On 1月29日, 下午1时05分, kevin <[email protected]> wrote:
>
> > Can you point me to an example of implement native layer? Is it just 
> > ajavascriptinterface call back object which register in webview?
>
> > Thanks,
> > Kevin
>
> > On 1月27日, 下午9时53分, Tez <[email protected]> wrote:
>
> > > Hi,
>
> > > Basically, AJAX calls are not allowed within the android web view
> > > I implemented a native layer that intercepted the calls and
> > > transferred actual data
> > > using android apis
>
> > > Cheers,
> > > Earlence
>
> > > On Jan 27, 8:58 am, kevin <[email protected]> wrote:
>
> > > > I am trying to usejavascriptXMLHTTPRequestinside a webview.
> > > > Wondering if anyone has experience doing this and what is the
> > > > limitation Android webview has?
>
> > > > Anyway to get around loading a local page withjavascript
> > > >XMLHTTPRequesthaving security issue for other domain?
>
> > > > Thanks,
> > > > Kevin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to