01-15-2013 08:46 AM
I have a problem that is probably easiest explained by using the ActiveTextFieldsDemo sample that is provided with the SDK.
Basically, if I go into my calendar application, type a 9 digit number into an Active Text Field, click on it, then click Location, the instance of FmcUiApplication is loaded, no problems so far.
Now, if I then choose to click on the "End Call" button, which sends the program into the background, and then want to invoke the application again from an active text field, I can't - the logs report that the application is already running, if I go to "switch application" from the BB menu, I can see it is running, but it is not brought into the forground automatically from the active text field invocation.
I have tried the following:
1. Putting the following inside of the Run() method of the ApplicationMenuItem instance.
Foreground(ApplicationManager.getApplicationManage r().getProcessId(ApplicationDescriptor.currentAppl icationDescriptor()));
Which had no effect on bringing the application into the foreground
2. Attempting to close the application when it is sent into the background, by overriding the deactivate() method and calling requestClose(). This failed to close the application and therefore did not work round the issue.
Any help would be much appreciated!
Solved! Go to Solution.