Hey
I need top specify a URI when opening an intent using the following
line:

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(mediaUri, "image/png");

My ContentProvider is all set up, but I have NO idea how to point the
Uri to the resource or asset. the following does NOT work (cant find
file):

Uri mediaUri = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE +
                                "://" + getApplicationContext().getResources
().getResourcePackageName(R.drawable.icon) +
                                "/" + R.drawable.icon);

Cant get it working with assets OR resources

Thanks
Alex

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to