Android tutorial - Developer android | Developer mode in Android - android app development - android studio - android development tutorial



Enable Developer options - How to enable USB Debugging option in Android

  • On the real device, go to Settings then scroll down to the end. You will see the "About Phone" menu, tap it.
 developer options for android
  • You will see the "About Phone" screen scroll down to the end and tap on the "Build Number" for 7 times.
 tap 7 times
  • After that Android will tell that "You are Developer", go back to settings you will see "Developer Options" menu.
 developer options menu
  • Tap it, you will see the "Developer Options" screen then turn it on and check "USB Debugging" as the picture below
 developer options
  • Now, your device is allowing you to deploy an application for debugging.
android development tutorial

Install ADB USB Driver (Required for Windows, ignore if you use *nix)

  • When you connect the Android Device with Windows PC, Windows will not recognize your device. You need to install a driver before use it, below is instruction to install the driver.
  • Open the Android SDK Manager from the menu "SDK Manager" on the toolbox of Android Studio
 sdk manager menu
  • Then the SDK Manager window will show. Scroll down you will see the "Google USB Driver" checkbox with status as "Not installed" check it (if there is your Device Manufacturer USB Driver checkbox such as Nokia, Samsung check it)
 sdk manager download driver
  • Click "Install packages..." button.
 sdk manager download driver accept
  • Read the License of each packages and accept it, then click the "Install" button.
 sdk manager download driver installing


 sdk manager download driver done
  • Now, USB Driver was downloaded. You need to connect your Device with PC for installing driver. On the PC go to Device Manager (For windows 8.1 you can open Device Manager by right click on start button.
  • For Windows 7 - you can open Device Manager by right click on Computer and click Properties you will see the Device Manager link on the side menu)
 device manager
  • On Device Manager window find the Other devices you will see something with warning sign.
  • In the picture, the unknow device labeled as "Android Phone" (Sometime it show as the name of device) right click on it and select "Update Driver Software"
 device manager window
  • click the "Browse my computer for driver software" option.
 browse driver
  • Browse to the \extras\google\usb_driver then click "Next" button.
 usb debugging
  • When driver installed it will display as picture below.
 driver-installed
  • If after installed, the warning sign still appear or installation failed, please see the instruction from the Manufacturer website or manual.
android programming - android software - android emulator

Deploy your application to Device

  • To deploy the application to Android Device the method is as same as deploy an application to Emulator but when "Choose Device" window shown, select your device instread Emulator.
  • Click the "Run 'app'" (Green Triangle) on the toolbar (or shortcut Shift + F10 on Windows OS).
 run
  • Then the "Choose Device" window will show.
 choose device
  • If you connected to Android Device, it will show in the table, if nothing shows, connect your device to PC via USB cable and then you will see it.
  • Select the device that you want to deploy an application If you want to use this device for future launches check "Use same device for future launches".
  • Then click "OK" button, the application will deploy and execute.
 real device running
  • Now, your device showing an application with blank content and application name on the top bar (ActionBar).

Related Searches to Developer android | Developer mode in Android