I have exactly the same issue. I want to pass a file to an Intent and have android figure out the file-type and open it with the relevant application.
I tried the following constructor for the intent: Intent myIntent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("file://"+aFile.getAbsolutePath().toString())); but again no luck here. Still the same Exception ("ActivityNotFoundException"). Does anyone know how to achieve this? Thanks. On Sep 18, 11:23 am, glock45 <[EMAIL PROTECTED]> wrote: > Hello, > > I try using build-in picture activities toopenimagefor viewing ... > > ... > Intent photoPickerIntent = new > > Intent(Intent.ACTION_VIEW,Uri.fromFile(TestActivity.this.getFileStreamPath(fileame))); > > startActivity(photoPickerIntent); > ... > > .. and get error: > > ERROR/AndroidRuntime(1523): android.content.ActivityNotFoundException: > No Activity found to handle Intent { action=android.intent.action.VIEW > data=file:///data/data/[...]/files/test_photo } > > any help ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---