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

Apps How to create just one instance of a specific app

Discussion in 'Android Development' started by siromik, Jan 13, 2010.

  1. siromik

    siromik Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    8
    Joined:
    Oct 21, 2009

    Oct 21, 2009
    8
    0
    5
    Need to create only one task starting a specific app. While the app is running cannot allow another instance of the same app to be created. Anyone can help?
     

    Advertisement

  2. kinetic

    kinetic Well-Known Member
    Rank:
    None
    Points:
    38
    Posts:
    104
    Joined:
    Oct 27, 2009

    Oct 27, 2009
    104
    23
    38
    Can't you just assign "singleInstance" to the activity?
     
  3. siromik

    siromik Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    8
    Joined:
    Oct 21, 2009

    Oct 21, 2009
    8
    0
    5
    Tried, and unless I am doing something wrong, it does not work.
     
  4. KeithG

    KeithG Well-Known Member
    Rank:
    None
    Points:
    46
    Posts:
    103
    Joined:
    Nov 15, 2009

    Nov 15, 2009
    103
    3
    46

Share This Page

Loading...