Debugging app using your Android Phone | Android Studio

As an android developer you might have faced problem with the debugging. As the emulator takes a hack of time to start.
An alternate to this is using you own android mobile for debugging.

Using you mobile phone makes it easy to debug in lesser time. Also it is very easy to setup your phone for debugging

Here are the steps to do so:

Open you mobile phone and enable the debug mode
Steps in activating the debugging mode
Settings
About
Software information
Not tap Build number 7 times to activate the developers mode

You might want to update your driver to get connected.

Now open you android studio.
;

Method 1
Tools->Android->Enable ADB Integration .

Method 2
Open build:app gradle and write debuggable true
apply plugin: ‘com.android.application’

android {
compileSdkVersion 19
buildToolsVersion “20.0.0”

defaultConfig {
applicationId “org.example”
minSdkVersion 14
targetSdkVersion 19
versionCode 1
versionName “1.0”
}

buildTypes {
release {
debuggable true
}
}
}

and run the app. It will automatically get installed and started on you mobile phone.

Advertisements