Posted by: pierrot | on August 6, 2016
Posted in | 3 Comments » Tags:
< ![CDATA[
I dont see why not
]]>
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);
http://stackoverflow.com/questions/16520394/how-to-get-a-list-of-running-services-in-android
Your email address will not be published. Required fields are marked *
Comment
Name *
Email *
Website
< ![CDATA[
I dont see why not
]]>
< ![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);
]]>
< ![CDATA[
http://stackoverflow.com/questions/16520394/how-to-get-a-list-of-running-services-in-android
]]>