如何在Android模拟器上运行APIDemos?

时间:2023-01-06 18:56:16

I would like to run APIDemos under platforms\android-1.5\samples directory on Android emulator but I don't know how to do it.
Do I need to generate an apk or import sources as an eclipse project?

我想在Android模拟器上的platforms \ android-1.5 \ samples目录下运行APIDemos,但我不知道该怎么做。我是否需要生成apk或导入源作为eclipse项目?

3 个解决方案

#1


Simplest way is to import the project sources as an Eclipse project and then run from Eclipse.

最简单的方法是将项目源导入为Eclipse项目,然后从Eclipse运行。

#2


I tried importing the Api Demos and it did not work for me. Try this: File->New->Android Project->Create Project from Existing Sources , select API Demos for the browser window and finish.

我尝试导入Api演示,但它对我不起作用。试试这个:文件 - >新建 - > Android项目 - >从现有源创建项目,为浏览器窗口选择API演示并完成。

It works for me !

这个对我有用 !

#3


No, I see if we run Android Emulator from Eclipse, it's very slow because Eclipse must call Android Emulator (about 5 minute).

不,我看到我们是否从Eclipse运行Android Emulator,它非常慢,因为Eclipse必须调用Android Emulator(大约5分钟)。

Edit: I found a solution here: http://www.androidfreeware.org/tutorials/how-to-install-apk-files-on-android-device-emulator

编辑:我在这里找到了一个解决方案:http://www.androidfreeware.org/tutorials/how-to-install-apk-files-on-android-device-emulator

#1


Simplest way is to import the project sources as an Eclipse project and then run from Eclipse.

最简单的方法是将项目源导入为Eclipse项目,然后从Eclipse运行。

#2


I tried importing the Api Demos and it did not work for me. Try this: File->New->Android Project->Create Project from Existing Sources , select API Demos for the browser window and finish.

我尝试导入Api演示,但它对我不起作用。试试这个:文件 - >新建 - > Android项目 - >从现有源创建项目,为浏览器窗口选择API演示并完成。

It works for me !

这个对我有用 !

#3


No, I see if we run Android Emulator from Eclipse, it's very slow because Eclipse must call Android Emulator (about 5 minute).

不,我看到我们是否从Eclipse运行Android Emulator,它非常慢,因为Eclipse必须调用Android Emulator(大约5分钟)。

Edit: I found a solution here: http://www.androidfreeware.org/tutorials/how-to-install-apk-files-on-android-device-emulator

编辑:我在这里找到了一个解决方案:http://www.androidfreeware.org/tutorials/how-to-install-apk-files-on-android-device-emulator