How to run Android applications in android studio

Running Your Android Applications

In my previous lesson, you learnt how to create an android project   in Android Studio.These Android Applications can be run on a real device or  Emulator.

How to Run Android Applications on a real device.

Running Android applications on an actual device is pretty easy.

1.First, connect your mobile or tablet to your machine that you’re using to develop the application with.In case you are using Windows, you will be required to install OEM USB Driver .

2.Open your  Device; options go to Settings>DevOptions to enable USB Debugging. In case you are using Android 4.2 and above, developer options are hidden.Go to Settings>About the  phone and tap Build seven times.

3.Once you’re done setting your Device, Go to Android Studio and Click Run.

 

How to run Android applications in android studio

4.A selection box will appear for you to choose where to deploy your app.Choose your Device.

Android Applications

The application will be downloaded and get installed on your device.


How to Run Android Applications on Emulators

Emulators are virtual devices that are capable of simulating a real device.These Virtual Android Devices have all the characteristics of an Android phone, C licktablet or TV.

Creating Android Virtual Devices(AVD)

1.Start AVD Manager by going to Tools>Android>AVD Manager.

2.click Create Virtual Device.

3.Select  System Image Screen that you prefer, either tablet, phone, tc and click Next.

4.Check all the details and click Finish.

Once you’re done, Click  Run application icon on the toolbar.Select your virtual Device on the pop up screen that appears.Your “Hello World “application will run on the virtual device.

Next Topic: How to build Simpler User Interface in Android Apps

next2 next

About the Author: Eric K

Kenyan Developer and Blogger with Interests in Java,Javascript,Node.js, Wordpress, Android, PHP and Making Money Online. Solving world problems through programming is my passion. Hire me: Email : kawi3462@gmail.com