How To Run:
Start Emulator has we discussed in the earlier tutorial other wise refer to the Blogs
"What Is Emulator and How Can We Create Emulator" tutorial to run emulator.
After Emulator get started Just Click on the Run option on the top of the of the android studio as show in the below figure

How to Run the app on the Device(Phone or Tablet):


Here its showing LG Nesus it not compulsory to have LG any phone can be ok what ever the device you connect it will show that
.
Start Emulator has we discussed in the earlier tutorial other wise refer to the Blogs
"What Is Emulator and How Can We Create Emulator" tutorial to run emulator.
After Emulator get started Just Click on the Run option on the top of the of the android studio as show in the below figure
If the application successfully run the output will seen on the emulator as the below
How to Run the app on the Device(Phone or Tablet):
How
you run your app depends on two things: whether you have a real Android-powered
device and whether you're using Android emulator. This lesson shows you how to
install and run your app on a real device and on the Android emulator.
Running HelloWorld on your phone:
Let's
run our program directly on the phone. The big advantage of using the phone to
develop is that it is fast to load and run programs. In contrast the emulator
discussed next runs slowly in comparison and is irritating to use for a course
-- but it is a good back up. Before we get started plug your phone into your
laptop using the USB port, as shown below. Android Studio installs the Hello
World app on your connected phone and starts it.
Next, go to settings on your
phone and select Developer
option and then select USB debugging -- this will allow
Android Studio to communicate with the phone to program it.
If you do not see developer
option, follow the steps:
Goto Setting>>select About Phone option>>continous click on Build number option which is located at the bottom.
Go back to the setting>>you can see the Developer option know on the top of the About Phone option.as shown in the figure
If Click on the developer option and press on and select Check box of USB debugging to on.
Click on Run button circled in the toolbar
below.
Select
Android Application and click OK.
Here its showing LG Nesus it not compulsory to have LG any phone can be ok what ever the device you connect it will show that
The app
is downloaded, installed and run on the phone -- you'll see the following Hello
World on your phone.
If you app did not running properly the check as the below figure:
If for some reason you do not
see the app running on the phone check that you see USB enabled in the status
bar as indicated below
Red mark
is the symbol that your device is connected to your PC.
Still its not work, unplug the USB cable and then plug it in
again. See if a dialog shows up on your phone. If it does, check "Always
allow from this computer" and click OK,
If you find the following window on your device then click on the ok button,it will work for sure.
No comments:
Post a Comment