黑莓手机模拟器
问题描述:
我已经下载了黑莓手机模拟器的VMWare iso,它运行良好。 如何在模拟器上上传我的Android应用程序(黑莓在线测试表示兼容)?黑莓手机模拟器
在我的Eclipe中,我没有“Run as”黑莓模拟器...所以我无法上传它,因为我所有的Android应用都是这样做的。
即使我创建了一个新的应用程序选择黑莓项目我不能上传它,你可以看到是默认的。
package mypackage;
import net.rim.device.api.ui.UiApplication;
/**
* This class extends the UiApplication class, providing a
* graphical user interface.
*/
public class MyApp extends UiApplication
{
/**
* Entry point for application
* @param args Command line arguments (not used)
*/
public static void main(String[] args)
{
// Create a new instance of the application and make the currently
// running thread the application's event dispatch thread.
MyApp theApp = new MyApp();
theApp.enterEventDispatcher();
}
/**
* Creates a new MyApp object
*/
public MyApp()
{
// Push a screen onto the UI stack for rendering.
pushScreen(new MyScreen());
}
}
答
您列出的源代码是BB7(或更低版本)的Java应用程序,它不会在Playbook上运行。
要上传剧本(或VMWare的模拟器)编写的空气或C++应用程序使用黑莓DEPLOY.BAT用的WebWorks SDK或the other RIM SDKs未来:
blackberry-deploy.bat -installApp -password qaqa -device 192.168.1.128 -package my_app.bar"
我不知道Android的Java应用程序,也许你可以使用同一批处理文件呢?
答
你究竟想做什么? Playbook支持为Playbook创建的应用程序不适用于Blackberry智能手机&它为Android应用程序提供运行时环境。 因此,如果您希望为Playbook创建应用程序,则可以选择在Adobe Air中开发的Flash构建器。 或者,如果你想运行你的Android应用程序到剧本,请按照此步骤在你的月食上安装黑莓插件。
https://developer.blackberry.com/android/documentation/install_plugin_prerequisites_1895476_11.html
一旦你准备好与黑莓插件,你需要确认你的黑莓PlayBook应用程序(请点击此链接)
https://developer.blackberry.com/android/documentation/Test_your_app_1985225_11.html