0
我要跟蹤新的活動開始,我用這個代碼只得到我:ActivityManager:軌道開始新的活動
process = Runtime.getRuntime().exec(
"/system/bin/logcat ActivityManager:I");
但它可以讓所有的logcat,不與這樣的標籤進行篩選。
問題在哪裏?
訪問此鏈接:
http://developer.android.com/tools/debugging/debugging-log.html#filteringOutput
你只是想記錄一個活動的開始?因爲你可以添加Log.d(「TAG」,「activity started」);在你重寫的onCreate方法中 – Proxy32