You must be registered at AndroidPIT in order to participate in the Android Forum.
Ross ![]() Rank: Andryo Posts: 2 Join date: Jan 4, 2012 |
Record application/activity name/associated ID number created on Jan 4, 2012 9:08:05 PM
Hi guys, this is my first post here so it's nice to meet you all.
I'm currently looking to develop an application on Android API 10, which will be more of a daemon actually running in the background of a system, which will need the function to record some simple information about applications which are running on an android device. This information will then be recorded in a table which is part of an SQLite database. There is nothing shady about this, it is part of a proof of concept design in behavioural profiling as a wider system but I need to be able to record the name of activities running on a device. What is the best way in which that I can access this application activity name or ID number if activities/threads whatever have an ID associated with them? Thanks. |
Jeremiah ![]()
Status: Moderator Rank: Android Silver Senior Posts: 718 Join date: Apr 28, 2010 |
RE: Record application/activity name/associated ID number created on Jan 5, 2012 6:59:30 AM
Not sure how to access it, but all activities have a unique package name.
|
Ross ![]() Rank: Andryo Posts: 2 Join date: Jan 4, 2012 |
RE: Record application/activity name/associated ID number created on Jan 5, 2012 10:17:00 PM
In case anyone needs this in the future I found what I was looking for in the ActivityManager.
|