Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do I have to add to the manifest to debug an Android application on an actual Device?

Tags:

What kind of permission/Flag do I have to add to the manifest to debug my application on an actual Android device?

like image 807
Janusz Avatar asked Mar 09 '10 14:03

Janusz


People also ask

What is the purpose of manifests in an Android app?

The Android manifest file helps to declare the permissions that an app must have to access data from other apps. The Android manifest file also specifies the app's package name that helps the Android SDK while building the app.


2 Answers

Add android:debuggable="true" to the <application> element

More info here.

like image 200
Mark B Avatar answered Oct 20 '22 20:10

Mark B


You shold create a debug specific manifest file (typically in src/debug/AndroidManifest.xml). To avoid error: "Avoid hardcoding the debug mode." If you run/debug application directly throuh IDE, it is automatically build with android:debuggable="true" flag.

like image 30
Wooff Avatar answered Oct 20 '22 18:10

Wooff