Testing Apps On Device
We have created a HelloWorld app and tested on an emulator (Nexus S [Lollipop 5.0.0]).Now we are going to test our app on our device.I will do that with my Sony Xperia J (Jelly Bean 4.1.2)
, we need to enable USB debugging mode.
Enabling USB debugging mode
Enable "USB DEBUGGING"
from (Menu\Settings\Developer options)
see screenshot from xperia devic.
, Connect phone by data cable with your PC or Laptop.
, Click on Run 'app' Button.
, Select your device from the list (under Choose a running device
) then Click OK
Within few seconds, Android Studio will install this app on your device and run it for you.