If you need to enable Android developer mode and unlock the Android developer options on an Android device or Android emulator (AVD or Genymotion), follow the simple instructions below.
Enabling developer options on your Android phone or tablet unlocks a lot of hidden features intended to help developers debug and gain access to features on the device. You can do such things as, keep the device awake, enable USB debugging, allow mock locations, show touches, graphics debugging, show CPU usage, and my favorite, don’t keep activities alive, which will try to destroy the activities every chance it gets so you can test activity recreation.
Steps to Enable Android Developer Mode
- Open the applications section of your Android device.
- Find and open the Settings app.
- Scroll down until you see the “About phone” or “About tablet” section, usually at the bottom.
- Scroll down to the bottom until you see the “Build number.”
- Tap on it 7 times to turn on Android developer mode.
If you want to use your device to debug your Android application from Android Studio, which is the best way to test it, you’ll need to enable USB Debugging in the Developer options menu, which will turn on debug mode when a USB cable is connected. Connect it to your computer, run Android Studio, compile and run your application and Android Studio should pop up a menu asking if you would like to use the device to debug your application. Select it from the list and your app will deploy to the device and run.
Be sure to sign up for our mailing list on the left for future updates to the Electronic Armory. We’ll only send you announcements about the biggest topics, conversations and events going on.
Happy debugging! If you have questions, leave them in the comments below.