开发者

how to install android api demo app into my phone

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


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


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜