Returns a list of objects containing informations about installed apps.
Example - Show installed apps
function OnStart()
{
app.ShowProgress();
var lay = app.CreateLayout( "linear" );
var list = app.GetInstalledApps();
lst = app.CreateList( "", 1, 1 );
lay.AddChild( lst );
for(var i in list) {
var a = list[i];
lst.AddItem(a.packageName);
}
app.AddLayout(lay);
app.HideProgress();
}
from native import app
def OnStart():
app.ShowProgress()
lay = app.CreateLayout("linear")
list = app.GetInstalledApps()
lst = app.CreateList("", 1, 1)
lay.AddChild(lst)
for i in range(len(list)):
a = list[i]
lst.AddItem(a.packageName)
app.AddLayout(lay)
app.HideProgress()