I want to track new activity start , I use this code to only get I:ActivityManager :
process = Runtime.getRuntime().exec(
"/system/bin/logcat ActivityManager:I");
but it gets all logcat and do not filter with such tag .
where is the problem ?
visit this link :
http://developer.android.com/tools/debugging/debugging-log.html#filteringOutput
You need to tell
logcatto hide the other messages.*:Sturns everything else silent