Saturday, 1 April 2017

How to use Android Phone as an Emulator

usb-debugging


In the previous post i have told you how to create an Emulator in Android Eclipse, but it is slow compared to USB Debugging.

What is USB Debugging?

Using our smartphones as an Emulator also called as Debugger is called as USB debugging .

It is very simple to use your phone as an Android Emulator.

I have created an Info graphics for the easy understanding.





usb-debugging-infographics
 usb-debugging-infographics
 usb-debugging-infographics

1.Go to settings in your phone

settings

Tap on About Phone option more than 5 to 10 times till a message will come like

YOU ARE AN DEVELOPER NOW!

After this you can see the Developer options above the About phone.

developer-options

Now open the Developer options and Enable it and also enable the USB Debugging option as shown in the image.

usb-debugging

2. Connect your phone to the laptop Using USB.

connect-usb

Then the phone will ask for Trust this Computer are not click yes.

Then after complete the coding go to Run configuration as shown in the image.

run-configurations-in-eclipse

Then click Target tab and enable Always Prompt to pick device  and then click Apply then click Run.

always-prompt-to-pick-device


Then select your phone and click OK.

running-android-device

Then within some seconds or minutes the output will be displayed in your phone.

phone-as-android-emulator

You have successfully used your phone as Emulator.

NOTE: If your Phone is not visible in the Eclipse then try the following options.

1. Reconnect the phone 
2. Download your Phone's Sync Manager.(For Example : My phone is HTC so I have downloaded    HTC SYNC Manager) . 

 Install it and then follow the above procedures from beginning.

It will work definitely.

Now try this:

Hello World app


If you find any difficulty in making your phone as an Emulator mail me your trouble or error i will mail you the solution. narain2829@gmail.com .

Also read:

How to create an Emulator .



No comments :

Post a Comment