如何从备选入口点进入主要应用在BlackBerry? [英] How to access Main Application from alternate entry point on Blackberry?

查看:206
本文介绍了如何从备选入口点进入主要应用在BlackBerry?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我使用了一个备选入口点检查的时间。
如果智能手机到我这里设置的时候,它会在我的主推的应用程序在一个屏幕(例如屏蔽1)。

In my app, I have used one alternate entry point to check time. If smartphone go to the time I set here, it will push one screen (ex Screen1) in my main app.

public static void main(String[] args)
{
    MyApp theApp = new MyApp();
    if ( args != null && args.length > 0 && args[0].equals("autorun") ) {
        theApp.enterEventDispatcher();  
    } else {    
        theApp.pushScreen(new MyScreen());
        theApp.enterEventDispatcher();
    }
}  

在屏蔽1有一些按钮(如新建按钮),通常当我运行我的应用程序,然后单击新建按钮,它会推屏蔽2。但在这种情况下,没有东西发生。
我怎样才能解决这个问题?

in Screen1 have some button (ex New button), generally when I run my app and click "New button" , it will push Screen2. but in this case, no thing occur. How can I solve this problem ?

推荐答案

使用BlackBerry®Java®插件用于Eclipse®

有关原始应用程序创建项目后,

After creating the project for the original application,


  • 创建一个备选入口点启动该应用程序的UI。

  • create an alternate entry point to launch the application UI.

在项目中的BlackBerry_App_Descriptor.xml双击。

Double click on BlackBerry_App_Descriptor.xml within your project.

有关Moreinfo:

for Moreinfo:

<一个href=\"http://supportforums.blackberry.com/t5/Java-Development/Set-up-an-alternate-entry-point-for-an-application/ta-p/444847\" rel=\"nofollow\">http://supportforums.blackberry.com/t5/Java-Development/Set-up-an-alternate-entry-point-for-an-application/ta-p/444847

这篇关于如何从备选入口点进入主要应用在BlackBerry?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆