Hi all...i'm getting the similar problem..the log says
"LocalServiceController]ActivityManager: java.lang.SecurityException:
Permission Denial: starting Intent { flg=0x10000000
cmp=com.example.android.apis/.LocalServiceController } from null
(pid=-1, uid=-1) requires
android.permission.ACCESS_CHECKIN_PROPERTIES"

then i apply the permission as follow.

<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.example.android.apis"
      android:versionCode="1" android:versionName="@string/
activity_local_service_controller" xmlns:android="http://
schemas.android.com/apk/res/android">
    <application android:icon="@drawable/icon" android:label="@string/
app_name"
android:permission="android.permission.ACCESS_CHECKIN_PROPERTIES">
        <activity android:name=".LocalServiceController"
                  android:label="@string/app_name"
android:permission="android.permission.ACCESS_CHECKIN_PROPERTIES">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

</application>
    <uses-sdk android:minSdkVersion="3" />
<uses-permission
android:name="android.permission.ACCESS_CHECKIN_PROPERTIES"></uses-
permission>
</manifest>


But i'm still getting the same error? can anyone teach me how to solve
this?? please..




On Nov 19, 7:54 am, Mark Murphy <mmur...@commonsware.com> wrote:
> Pierre Henry wrote:
> > All hi,
>
> > This error is logged when launching activity:
>
> > __________________
> > 11-19 00:15:41.940: WARN/ActivityManager(71):PermissionDenial:
> > starting Intent { flg=0x10000000
> > cmp=com.soladhoc.affinity.ecf/.RemoteServiceBinding } from null
> > (pid=-1, uid=-1) requires android.permission.INTERNET
> > ______________________________________
>
> > I have attributed to all activities the INTERNETpermissionbut it
> > fails at some point.
>
> > _____________________________________
> > <?xml version="1.0" encoding="utf-8"?>
> > <manifest xmlns:android="http://schemas.android.com/apk/res/android";
> >    android:versionCode="1" android:versionName="1.0"
> >    android:sharedUserId="@string/shared_id" package="com.name.package">
>
> >    <uses-permissionandroid:name="android.permission.INTERNET" />
> >    <uses-permission
> > android:name="android.permission.ACCESS_COARSE_LOCATION" />
> >    <uses-permission
> > android:name="android.permission.ACCESS_FINE_LOCATION" />
> >    <uses-permission
> > android:name="android.permission.ACCESS_NETWORK_STATE" />
>
> >    <application android:icon="@drawable/icon" android:label="@string/
> > app_name"
> >            android:debuggable="true" android:name="BootECF"
> > android:permission="android.permission.INTERNET">
>
> >            <service android:process=":remote" android:name="RemoteService"
> > android:permission="android.permission.INTERNET">
> >                    <intent-filter>
> >                            <action 
> > android:name="com.name.package.IRemoteService"/>
> >                            <action 
> > android:name="com.name.package.REMOTE_SERVICE"/>
> >                            </intent-filter>
> >            </service>
>
> >            <activity android:name="RemoteServiceController"
> > android:permission="android.permission.INTERNET">
> >                        <intent-filter><action
> > android:name="android.intent.action.MAIN"></action>
> >                        </intent-filter>
> >                 </activity>
>
> >            <activity android:name="RemoteServiceBinding"
> > android:permission="android.permission.INTERNET"
> > android:multiprocess="true">
> >                    <intent-filter>
> >                       <action 
> > android:name="android.intent.action.MAIN"></action>
> >                      <category 
> > android:name="android.intent.category.LAUNCHER"></
> > category>
> >                          <action
> > android:name="android.intent.action.ALL_APPS"></action>
> >                        </intent-filter>
> >            </activity>
>
> > </application>
>
> >    <uses-sdk android:minSdkVersion="4" />
>
> > </manifest>
>
> > __________________________
>
> > As I understand thepermissionis applied to all classes in the same
> > package.
>
> > But here, RemoteServiceBinding isn't autorized to start.
>
> > So , has somebody any idea of this problem ?
>
> You need a <uses-permission> element, not android:permissionattributes.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 1.0 Available!

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