Android Question Two questions with tasklist

jannis

New Member
Licensed User
Longtime User
Hello,

I'm a newbie with b4a but not in Visual basic.
So for my practice i want to write a program to show some system information and a tasklist of running tasks.

The tasklist is easy to make with Activitymanager:

Dim am as ActivityManager
Dim tasks() as RunningTaskInfo = am.GetRunningTasks

For each task as RunningTaskInfo in tasks
Appname = task.GetApplicationName
Next



But the problem is that i want to get more infomation like icon, creation-date and size of the running app.

Question 1 : How to get more info about a running app ?
All Taskmanager-Apps has these Infos without root, so it must be possible


Also i want to count the starts of any apps of the system

Question 2 : is it possible to receive an event if any app is starting or must i have a look on the tasklist every 15 seconds



Thanks
Jannis
 
Last edited:

jannis

New Member
Licensed User
Longtime User
Hello,

not really usefull. It only gives the Appname.


Can anyone answer my second question ?
 
Upvote 0

thedesolatesoul

Expert
Licensed User
Longtime User
Upvote 0

jannis

New Member
Licensed User
Longtime User
Ok, very good.

Is it possible to receive an event if any app is starting or must i have a look on the tasklist every 15 seconds ?
 
Upvote 0
Top