DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 1 of 1

Thread: Get foreground task on Atrix

  1. Junior Droid
    caglaroral's Avatar
    Member #
    252237
    Join Date
    Feb 2012
    Posts
    6
    Liked
    1 times
    Phone
    Samsung Gio
    #1

    Get foreground task on Atrix

    Hi,

    I'm trying to get the foreground task using below code.

    Code:
    ActivityManager activityManager = (ActivityManager) getSystemService(UpdateService.ACTIVITY_SERVICE);
    List<ActivityManager.RunningTaskInfo> appProcesses = activityManager.getRunningTasks(1);
    
    Log.i("MyApp", "Foreground Package: " + appProcesses.get(0).topActivity.getPackageName());
    It looks like its not working on Atrix 2.3.4. I dont have Atrix to try on

    Any ideas?
  2. Sponsor
    DF Advertising
    Join Date
    Nov 2008
    Location
    DroidForums.net
     
     
     
     

Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Any way to disable app foreground data?
    By xeene in forum Galaxy Nexus General Discussions
    Replies: 7
    Last Post: 01-16-2012, 02:43 PM
  2. Task manager vs. Open advanced task killer
    By kashmir728 in forum Droid 3
    Replies: 10
    Last Post: 10-20-2011, 06:38 PM
  3. Motorola Device Images Leak, Might be the Atrix 2 or Atrix HD
    By WoZzY in forum Droid Forums Member News Depot
    Replies: 0
    Last Post: 07-27-2011, 07:48 PM
  4. SystemPanel: a task killer for people who hate task killers.
    By tliebeck in forum App Announcements
    Replies: 55
    Last Post: 05-05-2011, 02:35 AM
  5. Task Management or Task Killer?
    By RSQJEEP in forum Android Applications
    Replies: 1
    Last Post: 11-24-2009, 07:09 PM

Search tags for this page

activity log for atrix

,

foreground data

Click on a term to search our site for related topics.
Find us on Google+