Hi Perumal, You can do this to display all the PID's for running application
Context context = getApplicationContext(); Resources appR = context.getResources(); ActivityManager actmgr=(ActivityManager)context.getSystemService (Context.ACTIVITY_SERVICE); List<RunningAppProcessInfo> appList = actmgr.getRunningAppProcesses(); CharSequence[] items = new CharSequence[appList.size()]; Vector <Process>allProcesses = new Vector <Process>(); for (int i=0;i<appList.size();i++) { RunningAppProcessInfo rti = (RunningAppProcessInfo)appList.get(i); Log.v( "", "PID"+rti.pid+"Process Name"+rti.processName ); } Thanks Jaya Diaspark,Inc.(www.diaspark.com) On Mar 23, 2:21 pm, perumal316 <perumal...@gmail.com> wrote: > Hi All, > > Is there any way to display all the process IDs to a user? > > I think to display the current ID can use the following code: > > int myProcessID = Process.myPid(); > > But how do I display all process IDs? > > Thanks In Advance, > Perumal -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.