The HTMLViewer app is used for local file access in the latest SDK.
On Sep 8, 7:13 pm, Megha Joshi mjo...@google.com wrote:
local file access from the browser will be available in one of the upcoming
sdk releases. thanks!
2009/9/8 riosalado miaowe...@gmail.com
Hi Megha,
Could you
On Sep 9, 4:13 am, Megha Joshi mjo...@google.com wrote:
local file access from the browser will be available in one of the upcoming
sdk releases. thanks!
I just looked into 1.6 SDK docs. Nothing in WebView's interface shows
that it will be able to load local files. Did I look at wrong
local file access from the browser will be available in one of the upcoming
sdk releases. thanks!
2009/9/8 riosalado miaowe...@gmail.com
Hi Megha,
Could you provide more details on:
1) Based on what kind of security reason consideration, Android does
not allow Browser to access local html
Hi Megha,
Thanks for your example.
My question is how to get asset htm file's length,
AssetManager.openFd(String fileName).getLength() will get an error to
tell cannot open the htm file.
Thanks.
Anthony
On 8月22日, 上午4时21分, Megha Joshi [EMAIL PROTECTED] wrote:
On Wed, Aug 20, 2008 at 4:46 PM,
Thanks for that. Now I understand.
However, it looks like it is not possible to show data stored in a
data base in the browser. I'll start a new thread for that.
Friedger
On 10 Sep., 05:46, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I posted the ContentProvider implementation here:
Yes... I was trying to do that.
I am creating ContentProvider which stores data in a table with (for
now) only 2 fields:
_id (unique identifier)
_data (a String which stores the full path of the file)
I was unable to call openInputStream or openOutputStream on the Uri
cause of documentation was
2008/9/9 [EMAIL PROTECTED] [EMAIL PROTECTED]
Yes... I was trying to do that.
I am creating ContentProvider which stores data in a table with (for
now) only 2 fields:
_id (unique identifier)
_data (a String which stores the full path of the file)
I was unable to call openInputStream or
I'm refactoring code cause I made a huge number of tests before
getting something right.
I'll post it ASAP.
Thank you for your support.
On 9 Set, 20:10, Megha Joshi [EMAIL PROTECTED] wrote:
2008/9/9 [EMAIL PROTECTED] [EMAIL PROTECTED]
Yes... I was trying to do that.
I am creating
I posted the ContentProvider implementation here:
http://lucabelluccini.blogspot.com/2008/09/android-developers-google-group-focus.html
Soon the WebView section.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups
I am also confused.
Megha mentioned ContentResolver.openContentURI. That API function
doesn't seem to exist in 0.9
So could someone please enlight us and give a short example or eplain
what to do in order to load a file via content provider?
Thanks,
Friedger
On 7 Sep., 16:38, [EMAIL PROTECTED]
2008/9/8 friedger [EMAIL PROTECTED]
I am also confused.
Megha mentioned ContentResolver.openContentURI. That API function
doesn't seem to exist in 0.9
Can you try getContentResolver().openInputStream instead?
So could someone please enlight us and give a short example or eplain
what to
Nothing to do.
I wrote a ContentProvider returning a cursor pointing to a database
record having '_id' and '_data' columns filled (the last one contains
a full path to the file, as remarked on the documentation, in case of
binary data).
Passing url 'content://polito.mailandroid/1' to WebView
Why does this limit exists?
If one wants to display html-code that has been fetched to view ONCE,
this html-code has to be written in a content provider?
On Aug 24, 12:49 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
So, creating a content provider, which returns the same content of the
So, creating a content provider, which returns the same content of the
file, would be accessed by loadUrl from webview, without any url
filtering?
Such as, for example... content://my.mailclient/231
Should retrieve the content of file 231.html: content provider acts
as webserver.
Is it right?
On
1) For static files, you can use R class and use the browser to
render them
2) For runtime-generated files or out-of-resouces class, you can't
use file:// URIs anymore
2)a) A possible solution: manually open the file and provide file
content as string, mimetype and encoding
2)a)issue) WebView
In that case you should use the content provider option mentioned
earlier...Using a content provider would allow images as the content
provider would be used for image loading too. Another alternative is to put
the image inline, using the data:// scheme.
On Fri, Aug 22, 2008 at 4:47 AM, [EMAIL
I already done that but there's another limit: data rendered via
loadData are not able to load remote resources (img
src=http://...;).
On 21 Ago, 22:21, Megha Joshi [EMAIL PROTECTED] wrote:
On Wed, Aug 20, 2008 at 4:46 PM, Megha Joshi [EMAIL PROTECTED] wrote:
For security reasons, WebView
I tried but I can only render plain or simple html content.
When emails contain network references (such as images), loadData is
not able to retrieve them.
I need a local path:
reachable from browser
where I have rd/wr premission
On 21 Ago, 03:34, Gil [EMAIL PROTECTED] wrote:
Sorry for my bad
On Wed, Aug 20, 2008 at 4:46 PM, Megha Joshi [EMAIL PROTECTED] wrote:
For security reasons, WebView does not allow file: access any more.
If you want the link to be loaded in your activity, you should provide a
WebViewClient and implement shouldOverrideUrlLoading with { return false; }
For security reasons, WebView does not allow file: access any more. If you
want the link to be loaded in your activity, you should provide a
WebViewClient and implement shouldOverrideUrlLoading with { return false; }
On Wed, Aug 20, 2008 at 4:34 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Wow! Thank you for the tip. I'll tell you if it works in few
minutes...
On 21 Ago, 01:46, Megha Joshi [EMAIL PROTECTED] wrote:
For security reasons, WebView does not allow file: access any more. If you
want the link to be loaded in your activity, you should provide a
WebViewClient and
You can you load the contents of the html file yourself and call
loadData with that html on a WebView?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Mh... Nothing to do... I wrote:
WebView bodypartsWV = (WebView) findViewById(R.id.mail_bodyparts);
WebViewClient mWVC = new WebViewClient() {
@Override public boolean shouldOverrideUrlLoading(WebView view, String
url) { return false; }
};
bodypartsWV.setWebViewClient(mWVC);
Browser does not support viewing local files...
On Tue, Aug 19, 2008 at 12:38 AM, Peli [EMAIL PROTECTED] wrote:
Is it possible to open a local file in the browser?
In the Android browser, I tried menu / go to:
file:///sdcard/test.html
I always receive the error message:
Web page not
24 matches
Mail list logo