There is no permission for that (notice the error you are getting is NOT
SecurityException).  My guess is you are calling this on an Activity or
Service before onCreate() is called.

On Fri, Aug 21, 2009 at 7:16 AM, Dany BREARD <[email protected]> wrote:

>
> Hi
>
> I try to use a lot of permission to use
>
> ContentResolver cr = getContentResolver();
>
> but i always have an  ERROR Exception: java.lang.NullPointerException
>
> my code is just :
>
>
>
>            try {
>                ContentResolver cr = getContentResolver();
>            }
>            catch(Exception e){
>                 Log.v(TAG, "ERROR Exception: " + e);
>            }
>
> and i try to use :
>
> <uses-permission android:name="android.permission.INTERNET"/>
>
>    <uses-permission
> android:name="android.permission.SUBSCRIBED_FEEDS_WRITE"/>
>
>    <uses-permission
> android:name="android.permission.SUBSCRIBED_FEEDS_READ"/>
>
>    <uses-permission
> android:name="android.permission.WRITE_OWNER_DATA"/>
>
>    <uses-permission android:name="android.permission.WRITE_SETTINGS"/
> >
>
>    <uses-permission
> android:name="android.permission.ACCESS_CHECKIN_PROPERTIES"/>
>
>
> Do you know what kind of permission I have to use ?
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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