[android-developers] Re: WebView loadData limitations

2008-10-16 Thread Rubicks
Thanks Dave. I am trying to use the example you mentioned (ElementProvider). This is how I use it. ContentValues values = new ContentValues(); values.put("KEY_DATA", "/demo.html"); ElementProvider ep = new ElementProvider(); Uri u

[android-developers] Re: WebView loadData limitations

2008-10-16 Thread schmielson
Hey Rubicks, Check out this thread: http://groups.google.com/group/android-developers/browse_thread/thread/beae7de5e2500cb6/45977f54cf4aa592 WebView does not support file:/// URLs. Best, Dave On Oct 15, 5:47 pm, Rubicks <[EMAIL PROTECTED]> wrote: > May be this is what you meant?  myActivityLau

[android-developers] Re: WebView loadData limitations

2008-10-15 Thread Rubicks
May be this is what you meant? myActivityLauncher is an Activity where I have a webview to load html file from sdcard. public void startMyActivityLauncher() { Intent i = new Intent(this, myActivityLauncher.class); i.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);

[android-developers] Re: WebView loadData limitations

2008-10-15 Thread Rubicks
ok. I have a webview which is used just by my application. Now, how do I give permission? Is it done in Androidmanifest file? If that is the case, I have already done that On Oct 16, 12:50 am, Mike Reed <[EMAIL PROTECTED]> wrote: > The Browser app does not have permission to load a page from th

[android-developers] Re: WebView loadData limitations

2008-10-15 Thread Mike Reed
The Browser app does not have permission to load a page from the SD card. You can write an app with a WebView, and give yourself that permission, but the Browser is built explicitly w/o that right for security reasons. On Oct 15, 2008, at 3:41 PM, Rubicks wrote: I am trying to get a html

[android-developers] Re: WebView loadData limitations

2008-10-15 Thread Rubicks
I am trying to get a html file stored in my sdcard image on to webview . I am doing something like this myWebView.loadUrl("/sdcard/index.html"); Then I get an error on the webview as "The webpage at file:///sdcard/index.html could not be loaded as: The requested file was not found." But I am su

[android-developers] Re: WebView loadData limitations

2008-10-03 Thread schmielson
Thanks a ton for your comments, Mark. I've filed a bug: http://code.google.com/p/android/issues/detail?id=929. Best, Dave On Oct 1, 5:29 am, Mark Murphy <[EMAIL PROTECTED]> wrote: > schmielson wrote: > > As it turns out, the android:layout_height="wrap_content" used along > > with android:layou

[android-developers] Re: WebView loadData limitations

2008-10-01 Thread Mark Murphy
schmielson wrote: > As it turns out, the android:layout_height="wrap_content" used along > with android:layout_weight="1" of the WebView was preventing the > WebView from properly receiving events! After changing the WebView's > layout_height attribute to "0px" instead of "wrap_content", > should

[android-developers] Re: WebView loadData limitations

2008-09-30 Thread schmielson
Hi Mark, Thanks so much for the examples. I did go ahead and try using loadDataWithBaseUrl as in your example, not to any success. However, looking at your code - and seeing that it worked! - prompted me to take a step back and simplify my layout. The layout in which I had been displaying the

[android-developers] Re: WebView loadData limitations

2008-09-30 Thread Mark Murphy
schmielson wrote: > Thanks for the quick reply. Unfortunately, that does not work. The > link text becomes highlighted to indicate that it has been clicked, > but the URL is never loaded and the code in shouldOverrideUrlLoading > is never called. Visit http://commonsware.com/Android/, and down

[android-developers] Re: WebView loadData limitations

2008-09-29 Thread schmielson
Hi Mark, Thanks for the quick reply. Unfortunately, that does not work. The link text becomes highlighted to indicate that it has been clicked, but the URL is never loaded and the code in shouldOverrideUrlLoading is never called. I am currently considering as an alternative using my own subcla

[android-developers] Re: WebView loadData limitations

2008-09-29 Thread Mark Murphy
schmielson wrote: > 2) Is it possible to override URL loading (i.e. through the > WebViewClient method shouldOverrideUrlLoading) for HTML content that > is loaded into a WebView using its loadData method? Whenever I click > on any links in the HTML content I've passed to loadData the > shouldOve