logging - How to get complete system log from android -
i want complete system log. currently, i'm using below code system log
try { final process process = runtime.getruntime().exec("logcat -d -v threadtime *:i"); final bufferedreader bufferedreader = new bufferedreader(new inputstreamreader( process.getinputstream())); string line; while ((line = bufferedreader.readline()) != null) { linelist.add(line); } } catch (final ioexception e) { log.e(e.tostring()); }
i'm able system log using above code. gives last 30 min log. but, want complete system log application launch. possible write system log our private file?
to write continuously file, try this:
... exec( "logcat -f cachedirectory/logfile.txt -v threadtime" );
see -f option in http://developer.android.com/tools/help/logcat.html.
Comments
Post a Comment