Pierre Henry wrote:
> All hi,
> 
> This error is logged when launching activity:
> 
> __________________
> 11-19 00:15:41.940: WARN/ActivityManager(71): Permission Denial:
> 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 INTERNET permission but 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-permission android: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 the permission is 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:permission attributes.

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