Wednesday, October 12, 2016

Run my first android app into a real device

After you create your first android app, you are ready to install or run it into a real device. It is very easy to run your app into a device. Below are the steps to run android app to device :

1. Connect your android phone to your computer through USB port.

2. Make sure that your android device API level is the same or higher than your app minimum SDK API level.

3. Make sure that your Android device's developer options is enabled and USB debugging is enabled.

4. On Android Studio menu bar click button debug or run. After you click  run or debug a dialog showing connected devices will be shown like in the picture below.

Dialog showing connected devices.


5. In this example I connect with  a Xiaomi Phone with API level 18. If the connected device is not displayed try to disconnect and reconnect again. If the connected device still not displayed make sure you have installed the appropriate driver for your phone.


6. Click OK button, the android studio will install the app to your device and show the activity you just created. In this example the "helloworld" text will be displayed.


7. Once the "helloworld" text is displayed it means your app is installed successfully,  now your app icon is shown on home screen of your phone with the name like you first name it at the begining of the project. your next job is to customize the app as you intended to build it.





Thank you for visiting our website. Just comment below if you have any question to ask.

No comments:

Post a Comment