Android Question getRunningTasks doesn't work in Android L

Discussion in 'Android Questions' started by ddahan, Jan 21, 2015.

  1. ddahan

    ddahan Member Licensed User

    Hi,
    I'm using getRunningTasks to get running apps. I noticed that this function is not working on Lollipop devices.
    I also tried ActivityManager lib but got the same.
    There are reports in the internet that getRunningTasks is now deprecated in Android L.
    I could not figure out any alternative solution.
    I'll appreciate any idea.

    thanks,
    David.
     
  2. thedesolatesoul

    thedesolatesoul Expert Licensed User

    It is deprecated. There is no alternative.
     
    NJDude likes this.
  3. ddahan

    ddahan Member Licensed User

    Wow, it is a significant part of my app.
    Is there any known reason for deprecating this function?
     
  4. NJDude

    NJDude Expert Licensed User

    Google deprecates stuff based on security and functionality, and other times just because they can.
     
  5. thedesolatesoul

    thedesolatesoul Expert Licensed User

    DonManfred, lemonisdead and NJDude like this.
  6. ddahan

    ddahan Member Licensed User

    Thanks for replying.
    The proposed new usage stats service may be good approach for my needs.
     
  7. Rick Harris

    Rick Harris Well-Known Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice