Thanks you very much Dianne

I called that on an other class Client out of my oncreate so now I
don't have any error

Dany

On Aug 21, 6:52 pm, Dianne Hackborn <hack...@android.com> wrote:
> 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 <dany.bre...@gmail.com> 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
> hack...@android.com
>
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to