Record application/activity name/associated ID number

  • Replies:2
Ross
  • Forum posts: 2

Jan 4, 2012, 9:08:05 PM via Website

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.

Reply
Jeremiah
  • Forum posts: 775

Jan 5, 2012, 6:59:30 AM via Website

Not sure how to access it, but all activities have a unique package name.

Reply
Ross
  • Forum posts: 2

Jan 5, 2012, 10:17:00 PM via Website

In case anyone needs this in the future I found what I was looking for in the ActivityManager.

Reply