Paul,

Don't know if this is a typo, but - you have Uri.fromFile in the code quoted below. That method makes a file:// Uri, which has nothing to do with your content provider (or any other) - and that's why you are not seeing a call to your openFile.

You need to construct a content:// scheme Uri which points to your provider's authority.

-- Kostya

26.04.2011 6:04, Paul пишет:
<provider
             android:name=".provider.MyProvider"
             android:authorities="package.name.here"
             android:exported="true" />

I am using it for all DB activity in my app, so it's working... and
have tried the following, and no errors are generated:

getContentResolver().openFileDescriptor(Uri.fromFile(shareFile), "r");

But... this does not trigger a call to openFile().


--
Kostya Vasilyev -- http://kmansoft.wordpress.com

--
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