在AndroidManifest.xml中
application標籤新增android:debuggable="true"
<application
android:name="LauncherApplication"
android:process="android.process.acore"
android:label="@string/application_name"
android:debuggable="true"
android:icon="@drawable/ic_launcher_home">
於實機上開啟USB debugging還項(Menu > Applications > Development)
即可以在eclipse中使用debug mode來偵測程式
Debug完畢之後,要關閉時即把android:debuggable="true"設定為false即可。
http://cxr1217.iteye.com/blog/1397827
http://developer.android.com/guide/topics/manifest/application-element.html
http://www.devdiv.com/thread-46928-1-1.html
請先 登入 以發表留言。