-3

I am a new developer in android and am struggling to develop my application, because I need a function or something to read and return the apps installed on the device, if anyone can help me I thank you

Matt Ball
  • 344,413
  • 96
  • 627
  • 693

1 Answers1

0
//getting label name which is 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);
            }
Harshid
  • 5,626
  • 4
  • 36
  • 49