Hi, I’d just like to ask if it’s possible to show a list of running services via a script?

Hi, I’d just like to ask if it’s possible to show a list of running services via a script?

]]>

3 Commentsto Hi, I’d just like to ask if it’s possible to show a list of running services via a script?

  1. Anonymous says:

    < ![CDATA[

    I dont see why not

    ]]>

  2. Anonymous says:

    < ![CDATA[

    LL.bindClass(“android.app.ActivityManager”);



    var am = LL.getContext().getSystemService(Context.ACTIVITY_SERVICE);


    var num = LL.pickNumericValue(“How many do yoy want to see (max 50)”, 10, “test”, 5, 50, 1, “”);


    var rs = am.getRunningServices(num);


    var list = “”;


    for (var i = 0; i < rs.size(); i++)


    {


    var rsi = rs.get(i);


    list += “Process: ” + rsi.process + “\n” + “With component: ” + rsi.service.getClassName() + “\n” + “\n”;



    }




    alert(list);

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *