Re: [android-developers] Get sorted list android applications on basis of rarely used

2013-02-07 Thread Dan
On Wednesday, February 6, 2013 11:46:36 PM UTC-5, TreKing wrote:


 On Wed, Feb 6, 2013 at 12:00 AM, Bajrang Asthana 
 asthana...@gmail.comjavascript:
  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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Get sorted list android applications on basis of rarely used

2013-02-06 Thread TreKing
On Wed, Feb 6, 2013 at 12:00 AM, Bajrang Asthana
asthana.bajr...@gmail.comwrote:

 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

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Get sorted list android applications on basis of rarely used

2013-02-05 Thread Bajrang Asthana
Hi ,

I want to get a list of android applications on basis of rarely used. I am 
not getting how can we access last run time of application.

I thought it could be possible through reading of logcat file. But looking 
on log file of device, I found that the first entry of logcat is of 2 days 
back.

Is anyone have any idea about how to get last run and flushing mechanism of 
logcat file.

Thanks in advanced

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.