I created 3 buttons that launch same application by passing different parameters. How do I determine if the application is already running so that I can avoid multiple instances of application?
Code:
private void launchApplication(String application)
{
ApplicationManager appManager = ApplicationManager.getApplicationManager();
try
{
appManager.launch(application);
}
catch (ApplicationManagerException ame)
{
Dialog.alert("Error: " + ame.getMessage());
}
}