How to install android api demo application in my phone

I am learning Android development. The Android emulator has the apidemo app installed. I would like it to be installed on my real Android phone so that I can use it without starting the emulator. How to do it?

+6
android emulation demo
source share
3 answers

Api Demo is part of the SDK

Go to the installation location of the SDK samples / android-X / ApiDemo

(X - sdk version)

then install this project on your phone

+4
source share

The Eclipse Android Plugin (ADT) has a wizard for creating sample projects.

In eclipse Go to: File β†’ New β†’ Other ... β†’ enter Android in the search field β†’ Android Sample Project β†’ Next β†’ select the api level β†’ Choose any of the samples, for example ApiDemos

ApiDemos project created

Right-click on it and select "Run As" β†’ "Android Application"

+14
source share

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

+3
source share

All Articles