Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid - error while trying to launch: ActivityManager: java.lang.SecurityException: Permission Denial
    primarykey
    data
    text
    <p>I'm trying to luanch my application, and this is the log:</p> <pre><code>[2012-03-07 19:45:12 - hhs] Android Launch! [2012-03-07 19:45:12 - hhs] adb is running normally. [2012-03-07 19:45:12 - hhs] Performing hhs.pack.HhsActivity activity launch [2012-03-07 19:45:15 - hhs] Application already deployed. No need to reinstall. [2012-03-07 19:45:15 - hhs] Starting activity hhs.pack.HhsActivity on device emulator-5554 [2012-03-07 19:45:16 - hhs] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=hhs.pack/.HhsActivity } [2012-03-07 19:45:16 - hhs] ActivityManager: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=hhs.pack/.HhsActivity } from null (pid=-1, uid=-1) requires null </code></pre> <p>I've been searching for some answers and understood that the problem is from my manifest file. The problem is that <strong>I didn't touch my manifest for a long time (and it works today with the same manifest.</strong> Anyway, as I assume the manifest is important, this is my manifest:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="hhs.pack" android:versionCode="1" android:versionName="1.0" &gt; &lt;uses-sdk android:minSdkVersion="7" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt; &lt;uses-permission android:name="android.permission.INTERNET" /&gt; &lt;application android:icon="@drawable/ic_launcher" android:label="@string/app_name" &gt; &lt;activity android:name=".HhsActivity" android:label="@string/app_name" android:theme="@android:style/Theme.Black" &gt; &lt;/activity&gt; &lt;activity android:name="SimpleServiceActivity" android:label="@string/app_name"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;service android:name=".Service.SimpleService"&gt;&lt;/service&gt; &lt;/application&gt; &lt;/manifest&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload