Home / Android Development / Working with Emulator and Real Devices – Android Development Tutorial

Working with Emulator and Real Devices – Android Development Tutorial

In this part of tutorial, Insha-Allah we will learn how to setup emulator and real devices with android studio. As we discussed in our last tutorial how to create hello world android app, but we didn’t learn how to run android app either on emulator or any real devices. This tutorial is also helpful for those who are unable to run their android apps on their system because Android Virtual Device Manager (AVD) takes too much space Ram memory and high processor requirements etc. If you have such a requirements that’s okay or if you don’t have such a requirements then you can still run your android app on external emulator and on real device.

Before publishing your app in Google Play Store, make sure to check your app on emulator and real device at least once time whether its work or show result as expected or not. Bur what if we don’t have access to any Android virtual emulator and real device? Now let’s go down to and clear the things up,

Android Virtual Device Manager (AVD Manager) – Official Emulator

During the installation of android studio, by default, emulator has been automatically created by android virtual device. You can access to Android Virtual Devices window by clicking on small phone icon at right upper side in toolbar. (See Screen shot)

AVD Manager

And you can also access AVD Manager by clicking on Tools > Android > AVD Manager.

android tools

In Android Virtual Device Manager window, you will see your virtual device something Nexus 5 API 23 which was created during installation by default. You can edit, wipe and delete it from list. Even you can create new Virtual Device using button below in this window.

Your virtual devices

Once you have done all the things according to your operating system, click on green run button right below action tab. Your emulator / virtual device will be launch and can takes long time to ON. Its takes about 5 to 10 minutes to show screen so you have to be patience.

In case of any error occurred, like “Cannot launch AVD in emulator” or “HAXM module is not installed” then you need to install HAXM installer package from Android SDK Manger. In order to find SDK Manager, click on Tools > Android > SDK Manager.

Working with Real Device

Once you have real android device then you can use it as a emulator. You can run/debug your app on real device easily without any trouble. I would prefer to use real device instead of AVD because it’s never slow down your system performance as official emulator do. Running your app is easy as 123. Let’s see how to setup real device with android studio,

  1. In Android SDK Manager, make sure you have install Google USB Driver package.google usb driver
  2. Make sure to enable USB debugging in your device. To find this option, go to Setting > General > Developer options and tick USB debugging option box.
  3. Now connect your real device with computer via original USB cable and simply run your android app.
  4. In pop up window, choose your real device and hit Ok. It may takes couple of minutes to install and launch app on your mobile.choosing real device

This is how you can use your real device just like emulator. If you have any question related to this then please use comment section below to help you better and better. Thank you for reading Stay Blessed.

About Saeed

Saeed Rehman is a well known blogger, Android developer, Web developer and knows much more. He love to share his every single experience online to help people and to earn decent income :)

Check Also

linking google analytics with android app

How To Link Google Analytics With Android Apps [Video Tutorial]

Hey friends, In previous tutorial we discussed about uploading android app to Google playstore. Similarly, …

Leave a Reply

Your email address will not be published. Required fields are marked *