1. Download our Official Android App: Forums for Android!

Apps move app from background to foreground using its package name and `moveTaskToFront()` method

Discussion in 'Android Development' started by Adarsh32, Jul 19, 2016.

  1. Adarsh32

    Adarsh32 Lurker
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    2
    Joined:
    Jul 19, 2016

    Jul 19, 2016
    2
    0
    15
    Male
    In my app I want to bring the background app to foreground by knowing its package name. I know it can be done using `moveTaskToFront()` method but I don't know how to implement it.I am currently testing it on Lollipop 5.1 android version.Can anyone know the solution..
     

    Advertisement

  2. Hadron

    Hadron  
    VIP Member
    Rank:
     #7
    Points:
    2,218
    Posts:
    22,844
    Joined:
    Aug 9, 2010

    Aug 9, 2010
    22,844
    16,267
    2,218
    Spacecorp Test Pilot
    Dimension Jumping
    Welcome to the forum :)

    As this is an application development question I've moved it to the Application Development forum - you should get a better answer there.
     
  3. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #11
    Points:
    1,988
    Posts:
    7,858
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    7,858
    11,480
    1,988
    Male
    Software developer
    South West of England
  4. Adarsh32

    Adarsh32 Lurker
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    2
    Joined:
    Jul 19, 2016

    Jul 19, 2016
    2
    0
    15
    Male

Share This Page

Loading...