hi guys,

hi SREEHARI,

i have also created a ContentProvider. and i want to access this
ContentProvider from another application.

this is the Manifest.xml in the contentProvider created application.

<provider android:name=".database.CProvider"
android:authorities="com.sabretch.colorEyeD" android:exported="true"
android:grantUriPermissions="true" android:multiprocess="true"/>


so how can i read the data from another application???
if we look at a inbuilt ContentProvider like People. we can read data
by saying People.NAME here NAME is the column name. like wise how can
i use it. here what refers to People in my case??? and how can i
access my columns???

regards,
Randika

On Apr 14, 10:44 am, SREEHARI <[email protected]>
wrote:
> Hi Kiran,
>
>    I want to know how you are specifying the content uri....?? Can u
> pls provide the code snippet of your CONTENT URI..
>
> I used Uri mUri = Uri.parse("content://com.wipro.FTCProvider.CellInfo/
> profiles");  instead of
>     Uri mUri = Uri.parse(CellInfo.CONTENT_URI) ;
>
> Try to give the complete uri in ur application which u r accessing the
> content provider. Dont use the static variable CONTENT_URI even if u
> assign the complete value to that.
>
> Regards,
> SREEHARI

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to