android - Read and return the apps installed on the device -
this question has answer here:
- list of user installed apps 6 answers
i new developer in android , struggling develop application, because need function or read , return apps installed on device, if can me thank you
//getting label name install packagemanager p = mcontext.getpackagemanager(); list<applicationinfo> info = p.getinstalledapplications(0); for(int i=0;i<info.size();i++){ string label = p.getapplicationlabel(info.get(i)).tostring(); system.out.println("label:"+label); }
Comments
Post a Comment