I tried "file:///sdcard/test.txt" too but still it does not work... Do we
have to set any permissions or something to open a sdcard file through
application?
I think we should be able to browse the sdcard files through applications..
because in real phone when we insert an sdcard, we are able to open all kind
of files like a word file or text file.
You said i can browse the android filesystem from DDMS file explorer. I can
browse my sdcard folders from my application. I also created some folders
and files in sdcard through my application. So what could be reason I am
not able to open a file? Can you please help me with this...
Thanks,
On Thu, Aug 28, 2008 at 4:23 PM, Megha Joshi <[EMAIL PROTECTED]> wrote:
>
>
> 2008/8/28 Amin <[EMAIL PROTECTED]>
>
>>
>> I have added some text files in my sdcard image using "adb push ....".
>>
>> What I am trying to do is making a file browser for sdcard. and I can
>> see all the folders and files i created in my sdcard img through my
>> application. Now what i want is, I want to view that text files in my
>> application. Can you please tell me how can I do this? I already
>> tried this
>>
>> Intent myIntent = new Intent(android.content.Intent.ACTION_VIEW,
>>
>> Uri.parse("file://home/sdcard.img/test.txt"));
>>
>
> change your path to file:///sdcard/test.txt ...Android filesystem is
> different from your machine's filesystem so file://home/sdcard.img/test.txt.
> wont work.
> You can browse the android filesystem from DDMS file explorer...
>
>
>> But does not work.
>>
>> Thanks
>>
>> On Aug 28, 1:55 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
>> > 2008/8/28 immu <[EMAIL PROTECTED]>
>> >
>> >
>> >
>> > > Hi
>> > > Thanks for u reply !!!
>> > > But still i am unable to see files(jpeg/mp3) in my Emulator
>> > > iam opening the Emulator with command
>> >
>> > > emulator -sdcard <mypathHere>
>> >
>> > > but no result...
>> >
>> > > i have a doubt now , can i see those files from Emulator ?
>> >
>> > The emulator does not have a file browser...you will have to use File
>> > Explorer in DDMS:http://code.google.com/android/reference/ddms.html
>> >
>> >
>> >
>> > > On Aug 28, 1:54 am, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
>> > > > Did you load the sdcard to emulator? for detailed instructions see
>> the
>> > > link
>> > > > below:http://code.google.com/android/reference/emulator.html#sdcard
>> >
>> > > > How do you view the files in emulator?
>> > > > The emulator does not have a file browser...you will have to use
>> File
>> > > > Explorer in DDMS:http://code.google.com/android/reference/ddms.html
>> >
>> > > > 2008/8/27 immu <[EMAIL PROTECTED]>
>> >
>> > > > > Hi
>> > > > > i have add some files(jpeg/mp3) in sdcard image, but i am
>> > > > > unable to see them from Emulator
>> >
>> > > > > can any one help me...plzz
>>
>>
>>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---