Yes, you can.
You can see here, for example, information about the phone: Track the duration of a phone call
or
http://www.anddev.org/video-tut_-_querying_and_displaying_the_calllog-t169.html
There is a way to let Android and users know what you are using and access their data to determine if they will allow it.
I'm not sure that you can simply access any application, but theoretically, if you know how to read stored files that might be possible.
For example, Runtime.getRuntime().exec("ls -l /proc"); will provide you with the root folder "proc" with a lot of data that you might need. Perhaps this has been changed, I'm not sure, and I also don't know what you need.
Perhaps to get started, try:
public static boolean getApplications(final Context context) { ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); List<RunningTaskInfo> tasks = am.getRunningTasks(1); }
To do this, you must include this in your AndroidManifest.xml
<uses-permission android:name="android.permission.GET_TASKS" />
More on this: http://developer.android.com/reference/android/app/ActivityManager.html#getRunningAppProcesses%28%29
msj121
source share