android - EACCES (Permission denied) -
i want run application in 2 different android devices. first 4.0.3 android device , second 4.1.2. first device, application executed successfully, in second, logcat displays me eacces (permission denied). why???
i have added permissions. manifest file is:
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.androidjnetpcaptest" android:versioncode="1" android:versionname="1.0" > <uses-sdk android:minsdkversion="14" android:targetsdkversion="19" /> <uses-permission android:name="android.permission.change_wifi_state" /> <uses-permission android:name="android.permission.write_external_storage" /> <uses-permission android:name="android.permission.read_external_storage"/> <uses-permission android:name="android.pemission.internet" /> <uses-permission android:name="android.permission.access_network_state" /> <uses-permission android:name="android.permission.internet" /> <uses-permission android:name="android.permission.access_network_state" /> <application android:allowbackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/apptheme" > <activity android:name=".splashscreenactivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <activity android:name=".mainactivity" android:label="@string/app_name" android:screenorientation="portrait"> <intent-filter> <action android:name="android.intent.action.default" /> <category android:name="android.intent.category.default" /> </intent-filter> </activity> </application> </manifest>
check permission. should outside of application tag
<manifest> <application> ... </application> <uses-permission android:name="android.permission.write_external_storage"/> </manifest>
Comments
Post a Comment