Hi,

   I am trying to browse files from the sd card, but haven't had any  
success so far. Maybe I am doing something wrong, so I'd like to write  
down the steps for your feedback.

   The sample contains of an html file that references a png.

   (1)
localhost:~ mkamp$ cat test.html
<html>
   <p>Hello World!<img src="test.png"></p>
</html>

   (2) I transfer the two files to the sdcard like this:

localhost:~ mkamp$ adb push test.html /sdcard/.
10 KB/s (57 bytes in 0.005s)
localhost:~ mkamp$ adb push test.png /sdcard/.
709 KB/s (3180 bytes in 0.004s)

   (3) To check if they are there I get them back and compare the  
version I pulled back with the version I pushed doing the following:

localhost:~ mkamp$ adb pull /sdcard/test.png test2.png
829 KB/s (3180 bytes in 0.003s)
localhost:~ mkamp$ adb pull /sdcard/test.html test2.html
0 KB/s (57 bytes in 0.110s)
localhost:~ mkamp$ diff test.html test2.html
localhost:~ mkamp$ md5 test.png test2.png
MD5 (test.png) =  49cde2f11086e4ebcb1aff45deaae750
MD5 (test2.png) = 49cde2f11086e4ebcb1aff45deaae750

   So life should be good, right?

   (4) Well, when trying to browse those files in the Android browser  
with the url file:///sdcard/test.html I get "Web page not available.  
The Web page at file:///scard/test.html could not be loaded as: The  
requested file was not found."

   (5) The system logs shows:

E/browser (  239): onReceivedError code:-13 The requested file was not  
found.
D/browser (  239): updating cursor


   I feel really stupid failing at something so simple, but I just  
don't see what I am missing.

Cheers,
Mariano
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to