I'm writing an android web application using built in webkit engine. I have 
html files in the application local dir (wanted to put them in assets but 
we have a requirement to update them over http so I need to replace assets 
in runtime what is impossible). The application should work over SSL with 
one requirement: it should check CN for each request. I've implemented it 
the following way:

   1. I wrote MySSLSocketFactory that uses custom trust manager. In that 
   trust manager I delegate call to default one and check CN.
   2. Then I wrote java-javascript bridge and transfer all ajax calls to 
   android service.
   3. When call is done the service sends broadcast intent and I parse its 
   data in the receiver(in main activity that contains a webview) and call a 
   global js function with request id.

It works....but... I forgot about a lot of js features like closure, 
anonimous functions etc. Is there any other way? Maybe it's possible to 
force webkit to use MyHttpClient instead of default one?

Any ideas?

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to