Hi All,

I'm following a great tutorial from AndDev.org (http://www.anddev.org/
viewtopic.php?t=67) where it shows you how to make a simple File
Browser.

There were a lot of instances where the code needed small
modifications to run on SDK-0.9, but there is one part that I am stuck
on. Opening selected files with applications (e.g. opening a png file
in PhotoPicker).

In my ListView.onListItemClicked() funtion I have the following code:

        Intent myIntent = new
Intent(android.content.Intent.ACTION_VIEW,
 
Uri.parse("file://" + aFilename.getAbsolutePath().toString());
        startActivity(myIntent);

but it gives me an ActivityNotFoundException.

Perhaps I am totally misunderstanding how Intents work. To be brutally
honest the whole Intent/Context terminology is quite new to me and any
help understanding it would be appreciated (I've already read the
tutorials on the android doc pages ;-) )

If anyone can point me in the direction of a good tutorial on Intents/
Context/Opening Apps I would be grateful.

Regards,
David.
i <3 Android

--~--~---------~--~----~------------~-------~--~----~
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]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to