I have the code to retrieve the currently running applications in Blackberry.
And, I have also used CodeModuleManager.getModuleHandles() but I am not able to retrieve the application names.
Please help.
ApplicationManager appMan = ApplicationManager.getApplicationManager();
int[] handle = CodeModuleManager.getModuleHandles();
ApplicationDescriptor[] appDes = appMan.getVisibleApplications();
for (int i = appDes.length - 1; i >= 0; --i)
{
String moduleName = appDes[i].getModuleName();
String name = appDes[i].getName();
System.out.println("**********************"+moduleName+" "+
name+"*********************");
}
for (int i= handle.length -1; i>=0; --i)
{
System.out.println("*************"+handle[i]+"***********");
}
System.out.println("**Code**"+CodeModuleManager.getApplicationDescriptors(70) +
"**************");
Try this –