Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.lang.SecurityException: Permission Denial: starting Intent

Tags:

android

I am a newbie to Android application development... When i try to run my application i am getting a security exception as Permission Denial... though i am able to open my application i am unable to proceed to any of the process... Application doesn't access the web service... Plz help me out...

The following is the exception message I receive,

[2012-01-11 11:02:09 - eCalc] ActivityManager: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.anb.eCalculator/.LoginActivity } from null (pid=-1, uid=-1) requires android.permission.INTERNET



enter code here
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.anb.eCalculator"
  android:installLocation="internalOnly"
  android:versionName="1.2.1" android:versionCode="10">
   <uses-permission android:name="android.permission.INTERNET"></uses-permission> 
<application android:label="@string/app_name"  
             android:theme="@android:style/Theme"                    
              android:permission="android.permission.INTERNET" 
             android:icon="@drawable/ecalcicon" android:allowClearUserData="true">
  <activity android:name=".LoginActivity"                    
          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=".CalculationActivity"></activity>
 <activity android:name="ResultActivity"></activity>
 <activity android:name=".InformationActivity"></activity>
 <activity android:name=".RegisterActivity"></activity>
 <activity android:name=".SettingsActivity"></activity>
   <activity android:name=".ResultDetailsActivity"></activity>
   <activity android:name=".Disclaimer"></activity>

</application>


 <uses-permission android:name="android.permission.INTERNET" />
  <uses-sdk android:targetSdkVersion="5"
            android:minSdkVersion="5"
            android:maxSdkVersion="12">
   </uses-sdk>

like image 570
Prakash Avatar asked Jan 18 '23 20:01

Prakash


1 Answers

<uses-permission android:name="android.permission.INTERNET" />

Add this above line in your manifest file after your <uses-sdk> line.

like image 179
Ghost Avatar answered Mar 24 '23 09:03

Ghost