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



創作者介紹
創作者 攝即是空 的頭像
小彬彬

攝即是空

小彬彬 發表在 痞客邦 留言(0) 人氣( 7131 )