Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9118955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:16:44+00:00 2026-06-17T05:16:44+00:00

<manifest xmlns:android=http://schemas.android.com/apk/res/android package=per.sainik.activity android:versionCode=1 android:versionName=1.0 > <uses-sdk android:minSdkVersion=10 android:targetSdkVersion=10 /> <user-permission android:name=android.permission.GET_TASKS > </user-permission>

  • 0
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="per.sainik.activity"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
    android:minSdkVersion="10"
    android:targetSdkVersion="10" />

<user-permission android:name="android.permission.GET_TASKS" >
</user-permission>

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity android:name=".LogViewActivity" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>


</application>

and

import android.app.Activity;
import android.app.ActivityManager;
import android.os.Bundle;
import android.util.Log;

public class LogViewActivity extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    ActivityManager activityManager = (ActivityManager) getApplication()
            .getSystemService(ACTIVITY_SERVICE);
    Log.v("LOG_SERVICE", activityManager.getRunningTasks(1).get(0)
            .toString());
}

}

It’s getting exception , named :

01-05 14:55:05.207: E/AndroidRuntime(334): java.lang.RuntimeException: Unable to start activity ComponentInfo{per.sainik.activity/per.sainik.activity.LogViewActivity}: java.lang.SecurityException: Permission Denial: getTasks() from pid=334, uid=10037 requires android.permission.GET_TASKS

Getting permission problem. Any Help would be appreciated!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:16:45+00:00Added an answer on June 17, 2026 at 5:16 am

    You have misspelled the permission. The Exact permission is,

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

    not,

    <user-permission android:name="android.permission.GET_TASKS" >
    </user-permission>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<manifest xmlns:android=http://schemas.android.com/apk/res/android package=com.app.android android:versionCode=1 android:versionName=1.0 > <uses-sdk android:minSdkVersion=9 android:targetSdkVersion=15 /> <application android:icon=@drawable/ic_launcher android:label=@string/app_name android:theme=@style/Theme.StyledCustom
This is my section of permissions of my manifest: <manifest xmlns:android=http://schemas.android.com/apk/res/android package=com.adelco.ventamovil android:versionCode=1 android:versionName=1.0>
<?xml version=1.0 encoding=utf-8?> <manifest xmlns:android=http://schemas.android.com/apk/res/android package=com.androidgames android:versionCode=1 android:versionName=1.0> <uses-sdk android:minSdkVersion=3 /> <application android:icon=@drawable/icon android:label=@string/app_name>
i am having my manifest file like this <manifest xmlns:android=http://schemas.android.com/apk/res/android package=com.basic.adwhrilsample android:versionCode=1 android:versionName=1.0 >
<?xml version=1.0 encoding=utf-8?> <manifest xmlns:android=http://schemas.android.com/apk/res/android package=com.android> <application android:icon=@drawable/ic_launcher android:label=@string/app_name> <activity android:name=.hba1c android:label=@string/app_name android:screenOrientation=portrait> <intent-filter>
This is the manifest file <?xml version=1.0 encoding=utf-8?> <manifest xmlns:android=http://schemas.android.com/apk/res/android package=net.learn2develop.SMSMessaging android:versionCode=1 android:versionName=1.0> <uses-sdk
I have the following manifest (snippet): <?xml version=1.0 encoding=utf-8?> <manifest xmlns:android=http://schemas.android.com/apk/res/android android:versionCode=1 android:versionName=1.0 package=com.uniquename.appname>
Following this: http://developer.android.com/training/basics/firstapp/starting-activity.html I am confused when editing the Android Manifest.xml file. It says
I'm trying to complete this tutorial from the Android Page http://developer.android.com/training/basics/firstapp/starting-activity.html But I Eclipse
intentTest.java: package intentTest.xyz.com; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; public

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.