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

  • SEARCH
  • Home
  • 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 6830511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:37:35+00:00 2026-05-26T22:37:35+00:00

Can any one please tell me what is the difference between Task and Process

  • 0

Can any one please tell me what is the difference between Task and Process in Android.
If I use this code snippet.

ActivityManager Appmgr;
protected List<ActivityManager.RunningTaskInfo> apps;
protected List<ActivityManager.RunningAppProcessInfo> applications;
applications = Appmgr.getRunningAppProcesses();
apps = Appmgr.getRunningTasks(30);

Whats the difference between applications = Appmgr.getRunningAppProcesses() and apps = Appmgr.getRunningTasks(30).

Please Help me.
Regards

  • 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-05-26T22:37:36+00:00Added an answer on May 26, 2026 at 10:37 pm

    getRunningAppProcesses () :

    Returns a list of RunningAppProcessInfo records, or null if there are no running processes (it will not return an empty list). This list ordering is not specified.

    getRunningTasks (int maxNum) :

    Return a list of the tasks that are currently running, with the most recent being first and older ones after in order. Note that “running” does not mean any of the task’s code is currently loaded or activity — the task may have been frozen by the system, so that it can be restarted in its previous state when next brought to the foreground.

    Update:

    Now the difference between Task and Process.

    In Android a Task is a set of or you can say a collection of Activities. Its all about user interaction with these activities. Android maintains these activities in stack accordingly they are opened and maintain this stack. May be one stack or many stacks, the last opened activity on top of stack. And it hows android maintain systems’s state. An Application has its own task with it opened activities and if new Application starts, system creates a new Task with new Activities in LIFO structure. And when user interacting with this task on Home Screen, He just navigate to particular application and task of this application now become foreground.

    While Process is related to Android application component. Every new Android application start in new Process (Linux Process) in its own user space. All application components run on same Process by default. And it execute as single thread process. That’s why its called Main Thread of Application. But here you can define separate process for different android application components, like Activity, Service, Provider or Broadcast Receiver using manifest attribute android:process. Android Process has same funda as Linux Process with UserId, so you can combine different android application components running on same process with same UserId.

    So while you call getRunningAppProcesses() It will give you all running Android application’s processes related to running application components.

    And getRunningTasks (int maxNum) gives you list of created task for different running applications by systems while user interact with applications.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can any one please tell me the difference between target and currenttarget in flex?
can any one please tell me how to make this code work in the
Can any one please tell me the difference of Open Type (Ctrl + Shift
Can anyone please tell me is there any special requirement to use either EXTERN
Hey, can anyone please tell me, what are difference between Dom parser and Xerces
can any one please tell me whats causing the memory leak. Data_Parser is an
Can anyone please tell me the difference between DictionaryBase and generic Dictionary<TKey, TValue> ,
Can anyone please tell me whats the exact difference between App id and api
Can anyone please tell me the difference between Hibernate's: createCriteria createQuery createSQLQuery Can anyone
Can anyone please tell me when should I use MessageContracts and when should I

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.