Hello,

Until yesterday I had a fully working application, but now, with the
new 1.6 SDK release I have big problems - nothing works.

What I have is: WebView, which opens url like "content://
com.myself.myprovider/myhtmlfile.html"
>From the other side - ContentProvider implementation, which overrides
openFile(Uri uri, String mode) and uses
ParcelFileDescriptor.fromSocket to return ParcelFileDescriptor.

The Socket instance which I give to ParcelFileDescriptor.fromSocket
opens connection to a ServerSocket, which is implemented and runs in a
different thread.

Looks a little complicated, but the actual html file is generated in
another thread after some undefined time and that is why I don't use
ParcelFileDescriptor.open with normal file.

As I said - everything works perfect with the earlier Android SDK's.
With 1.6 I got error -14 from the WebView via WebViewClient's
onReceivedError. It seems that it asks for the ParcelFileDescriptor,
but right after it receives it, it raises the error.
Also - the WebView works fine if the ContentProvider returns a
ParselFileDescriptor, obtained from a file using
ParcelFileDescriptor.open.

Does anyone knows what is the actual difference in 1.6 SDK which makes
my problems regarding WebView, ContentProvider and
ParcelFileDescriptor.fromSocket classes and APIs?

Any help will be useful, I am out of ideas and the time at the moment
is not enough to dig in the Android source ...

--~--~---------~--~----~------------~-------~--~----~
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