how to install android api demo app into my phone

心不动则不痛 提交于 2019-12-18 16:47:31

问题


I'm learning android development.There is an apidemo app installed in the android emulator. I'd like have it installed in my real android phone so that I can use it without starting the emulator . How to do that ?


回答1:


Api Demo is part of the SDK

Go to where your SDK is installed samples/android-X/ApiDemo

(X being the version of the sdk)

then install that project on your phone




回答2:


In Eclipse Android plugin (ADT) there is a wizard for creating the sample projects.

In eclipse Go to: File -> New -> Other ... -> type Android into search box -> Android Sample Project -> Next -> select your api level -> Select any of the samples, for example ApiDemos

Project called ApiDemos is created

Right click on it and select Run As -> Android Application




回答3:


In order open api demo in your eclipse File>new>Android Project
From that 'New Android Project' window, you select Create Project from existing sample
When you select your target, you can select 'Api-demo' from the samples list
This will open the complete api demo in your eclipse and when you run this project in device you will get it in device also. you can edit and use it as you wish.



来源:https://stackoverflow.com/questions/4467835/how-to-install-android-api-demo-app-into-my-phone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!