[android-developers] Re: Browser Application: loading asset html files

2009-02-13 Thread Mark Murphy

Kumaravel Kandasami wrote:
  I have html/css/js files in my asset directory. In the MAIN activity
 class I am redirecting the display of the html files in my asset
 directory to the browser application using Intents.
 
 The browser application is not loading the html page, however if I
 change the code to use external URL it works fine.
 
 Not Working:
 
 startActivity (new Intent(Intent.ACTION_VIEW,
 Uri.parse(file:///android_asset/popup.htm)));
 
 Working:
 
 startActivity (new Intent(Intent.ACTION_VIEW,
 Uri.parse(http://www.saisk.com;)));

This is correct behavior.

 I am assuming the Intent are not mapped to the 'scheme' in the url (file
 versu http). Anyone have other suggestions.

Browser cannot load file:/// URLs in general, let alone from inside the
packaged assets of an arbitrary application that isn't the Browser itself.

A URL of file:///android_asset/popup.htm will work OK for an embedded
WebView, though.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Published!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Browser Application: loading asset html files

2009-02-13 Thread Fred Grott(shareme)

Komar there i s a tutorial on webview I believe at anddv.org

If you still need poitners..speak up as there are a few of us webview
adventuers around



On Feb 13, 3:54 pm, Kumaravel Kandasami
kumaravel.kandas...@gmail.com wrote:
  I have html/css/js files in my asset directory. In the MAIN activity class
 I am redirecting the display of the html files in my asset directory to the
 browser application using Intents.

 The browser application is not loading the html page, however if I change
 the code to use external URL it works fine.

 Not Working:

 startActivity (new Intent(Intent.ACTION_VIEW,
 Uri.parse(file:///android_asset/popup.htm)));

 Working:

 startActivity (new Intent(Intent.ACTION_VIEW, 
 Uri.parse(http://www.saisk.com;)));

 I am assuming the Intent are not mapped to the 'scheme' in the url (file
 versu http). Anyone have other suggestions.

 Thank You.

 Kumar    _/|\_www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Browser Application: loading asset html files

2009-02-13 Thread Kumaravel Kandasami
Thank you Fred and Mark.


www.anddv.org

is not valid URL.


Kumar_/|\_
www.saisk.com
ku...@saisk.com
making a profound difference with knowledge and creativity...


On Fri, Feb 13, 2009 at 5:50 PM, Fred Grott(shareme)
fred.gr...@gmail.comwrote:


 Komar there i s a tutorial on webview I believe at anddv.org

 If you still need poitners..speak up as there are a few of us webview
 adventuers around



 On Feb 13, 3:54 pm, Kumaravel Kandasami
 kumaravel.kandas...@gmail.com wrote:
   I have html/css/js files in my asset directory. In the MAIN activity
 class
  I am redirecting the display of the html files in my asset directory to
 the
  browser application using Intents.
 
  The browser application is not loading the html page, however if I change
  the code to use external URL it works fine.
 
  Not Working:
 
  startActivity (new Intent(Intent.ACTION_VIEW,
  Uri.parse(file:///android_asset/popup.htm)));
 
  Working:
 
  startActivity (new Intent(Intent.ACTION_VIEW, Uri.parse(
 http://www.saisk.com;)));
 
  I am assuming the Intent are not mapped to the 'scheme' in the url (file
  versu http). Anyone have other suggestions.
 
  Thank You.
 
  Kumar_/|\_www.saisk.com
  ku...@saisk.com
  making a profound difference with knowledge and creativity...
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---