local web content and XmlHttpRequest

by Miguel Paraz » Mon, 13 Jul 2009 19:55:17 GMT

Sponsored Links
I want to load local HTML content which makes HTTP calls using

I created a content:// URL which refers to the SD card, using the code

However, when I call the JavaScript function that makes the
XmlHttpRequest call, the callback function is never called. I guess
this is the same-origin policy in effect?

However, when I use file:///android_asset for the local content, the
call succeeds. This isn't very useful for me, because the html needs
to be preloaded.

I want the web content to be dynamic because I'm building a widget-
type solution.

Is there a solution? Thanks.


Other Threads

1. Tap Outside Listener for Dialog

Hi all,

I was wondering if anyone knew of an event listener that receives "tap
outside" events, that is, taps that happen outside the widget's
physical boundaries, and could this listener be assigned to a dialog
box (or for that matter, any visual window).  Here's what the code
MIGHT look like to construct a Dialog with this functionality:

.setTitle("My dialog")
.setMessage("This is my dialog")
.setOnOutsideClickListener(new MyOnClickListener()) // <- does
something like this exist?

Any help or insight anyone can give would be great.  I know that the
menu currently supports taps outside of its boundaries, so I think
this may be possible.

Thank you!


2. Seek bar sequence

Hi All,
I have developed seek bar component (I am showing while playing the
song). If i seeks the bar the song is getting changed the position
based on the seek bar change event, and playing fine. But if I leave
the seek bar it is not moving based on the song sequence. I know we
have to do something for that. Can any one tell me how to get the
event for moving the seek bar based on the song sequence.

Thanks in Advance,
Muthu Kumar K.

3. Some Android issues' got response.

4. Transport Data between Android and PC application

5. aac frame in rtp packet with media type audio "mp4a-latm" is supported in Android

6. XML schema validation Android

7. OutOfMemoryError when changing screen orientation