is it possible to get the packagename from the appname (or even nickname)?
thanks
edit: i am using speech recognizing to say the app. for example "open dolphin". But i cant launch any app without the package name

Moderator: Martin
Code: Select all
found_package=null;
keys=getMapKeys(package_info);
for (pn in keys)
{
label=package_info[pn]["application_info"]["label"];
if (label=="Automagic Premium")
{
found_package=pn;
break;
}
}
Code: Select all
map=newMap();
keys=getMapKeys(package_info);
for (pn in keys)
{
label=package_info[pn]["application_info"]["label"];
addMapEntry(map, label, pn);
}
found_package=map["Automagic Premium"];