blackberry alternate entry point- start app from background application(on push message click)

后端 未结 1 1582
不思量自难忘°
不思量自难忘° 2020-12-19 23:26

I want to open my UI app from a background application. How its done ?.

public static void main(String[] args) {
   if (args.length > 0 && args[0]         


        
1条回答
  •  醉梦人生
    2020-12-20 00:09

    You should pass argument "MYAPP" to code that's running application:

    ApplicationDescriptor[] appDescriptors =
    CodeModuleManager.getApplicationDescriptors(
            CodeModuleManager.getModuleHandle("MYAPP"));//.Cod file name
    ApplicationDescriptor appDescriptor = new ApplicationDescriptor(
    appDescriptors[0], new String[] {"MYAPP"});
    ApplicationManager.getApplicationManager().runApplication(appDescriptor);
    

    Read more here

    0 讨论(0)
提交回复
热议问题