Questions tagged [activity-manager]

manages all of the top-level components (activities, receivers, services, content providers) running in them.

Using the Activity Manager, the Android System manages a stack of activities which are in different states (starting, running, paused, stopped, destroyed).

Actually the Activity Manager does more than manage activities. It was named that because in the very early implementations of Android all we had were activities (before we had even implemented multiple processes yet), but in the ultimate implementation the activity manager would probably be better called the "application manager" -- it decides when to start processes, and manages all of the top-level components (activities, receivers, services, content providers) running in them.

133 questions
0
votes
1 answer

Name running application and not package name

Is possible have only the name of running application and not the package name? I have this code now: ActivityManager am = (ActivityManager) getSystemService(Activity.ACTIVITY_SERVICE); List processes =…
David_D
  • 1,404
  • 4
  • 31
  • 65
0
votes
1 answer

Android Continuous Data Usage Monitoring

In our application we need to maintain logs for calls,sms and internet. In case of Internet we want to know the data usage of each application on daily, weekly or monthly basis. We are able to figure out running applications' names through…
user2011302
  • 391
  • 1
  • 4
  • 22
0
votes
1 answer

How put the free memory info in a texview

How can i put this in a textview? ActivityManager activityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE); MemoryInfo memoryInfo = new ActivityManager.MemoryInfo(); activityManager.getMemoryInfo(memoryInfo); memoryInfo.availMem; the…
Atlas91
  • 5,754
  • 17
  • 69
  • 141
0
votes
1 answer

How to list Android root processes

I'm trying to list all the currently running processes using the below code: ActivityManager am = (ActivityManager) getSystemService(ACTIVITY_SERVICE); List processInfo = am.getRunningAppProcesses(); for (int i…
srooth
  • 33
  • 2
  • 11
0
votes
1 answer

Got error while trying to get running app icon from ActivityManager.RunningTaskInfo

i'm trying to making a app that shows running app icon in custom listview, and switch to corresponding app when click icon. i think i should use "ActivityManager.RunningTaskinfo", "PackageManager" and "intent" to make it so i'm trying.. but i got…
0
votes
1 answer

Get running Apps(Internal and External) with icons

Currently, I'm working on to get a list of all running applications. I've been able to do this in the following way, ActivityManager activityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE); ActivityManager.MemoryInfo mInfo = new…
Sahil Mahajan Mj
  • 11,033
  • 8
  • 53
  • 100
-1
votes
1 answer

Requesting permission for your app to close another (Android)

I have been digging deep into the using ActivityManager's killBackgroundProcesses function to have my Android application kill another running application, however as it is widely know, an application with a different UID than your own cannot simply…
-1
votes
1 answer

bash script calling public android api method using activity manager (am)

I am trying to call the public android method getSSID() from a bash script? My objective is to return the currently connected SSID on the android device to a bash variable. requirements: must run as non-root user must use only android baked in…
Steve
  • 1
  • 2
-1
votes
1 answer

Activity not started : Android Emulator

I was trying to run my application on Eclipse and I received this message on the LogCat (Might be due to a problem in the android emulator) " ActivityManager: Warning: Activity not started, its current task has been brought to the front" Just to…
-1
votes
3 answers

Android: How to get recent tasks list and origActivity?

I'd want to get recent task list. I use the following code, but when I try to get origActivity info, origActivity is always null: ActivityManager activityManager = (ActivityManager) c.getSystemService(Context.ACTIVITY_SERVICE); List
Meroelyth
  • 5,310
  • 9
  • 42
  • 52
-3
votes
2 answers

How to bring down first-launch time?

How to bring down launch time? This App has nothing but a TextView Activity. Thank You
-4
votes
1 answer

killBackgroundProcesses not working, any other suggestions?

I am building an application that should be able to close other android applications. In this case, I am using Google Maps. I have granted permission in the Android Manifest XML to killBackgroundProcesses, but the following code does not close the…
Shabina Rayan
  • 389
  • 1
  • 8
  • 22
-6
votes
1 answer

How to determine the lock screen is on the top of the other activity, or the other activity is on the top of the lock screen?

I encountered a problem, MyActivity is under the LockScreen, in this case, I need to launch MyActivity from framework by clicking volume button; MyActivity is on the top of Lockscreen, in this case, I do nothing. But I don't know how to…
1 2 3
8
9