Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 installed in my real android phone so that I can use it without starting the emulator . How to do that ?

like image 432
John Wang Avatar asked Dec 17 '10 05:12

John Wang


2 Answers

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

like image 144
Peter Lamberg Avatar answered Sep 23 '22 18:09

Peter Lamberg


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

like image 39
Jason Rogers Avatar answered Sep 21 '22 18:09

Jason Rogers