On Wednesday, February 6, 2013 11:46:36 PM UTC-5, TreKing wrote: > > > On Wed, Feb 6, 2013 at 12:00 AM, Bajrang Asthana > <[email protected]<javascript:> > > wrote: > >> Is anyone have any idea about how to get last run and flushing mechanism >> of logcat file. >> > > An app only has access to its own logs in the latest version of Android, > so you can't do these types of hacks anymore. > > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices >
I think he already knows what he can't do (hence the question.) Rather than harp on his past sins (reading logcat output) why not point him at APIs that provide something close to what he wants like: http://developer.android.com/reference/android/app/ActivityManager.html#getRecentTasks%28int,%20int%29 http://developer.android.com/reference/android/app/ActivityManager.html#getRunningAppProcesses%28%29 http://developer.android.com/reference/android/app/ActivityManager.html#getRunningServices%28int%29 http://developer.android.com/reference/android/app/ActivityManager.html#getRunningTasks%28int%29 or if he is willing to build a set of patches to implement a feature/API that would allow people to avoid hacks, maybe an* *extension/analog to: http://developer.android.com/reference/android/content/pm/PackageManager.html#getInstalledPackages%28int%29 and point him to where he can submit feature requests and proposed patches that might implement something for everybody: http://code.google.com/p/android/ http://source.android.com/source/submit-patches.html Dan S. -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

