Returns a list of objects containing info about all currently running services in the background.
app.GetRunningServices() →
List: of objects: [{
user,
pid,
name }]
Note: This function is deprecated. Filters are applied since Android 11. Full functionality can be accessed in the X-Version of DS.
See
Android Package Visibility for more information.
See Also:
GetRunningApps,
GetInstalledApps
Example - Show Running Services
function OnStart()
{
app.ShowProgress();
var lay = app.CreateLayout( "linear", "fillxy,vcenter" );
lst = app.CreateList( "", .9, .9 );
lst.SetTextSize1( 15 );
lay.AddChild( lst );
var list = app.GetRunningServices();
for( var i in list )
{
var a = list[i];
var body =
"user: " + a.user +
"\npid: " + a.pid;
lst.AddItem( a.name, body );
}
app.AddLayout( lay );
app.HideProgress();
}