【问题标题】:Read and return the apps installed on the device [duplicate]阅读并返回设备上安装的应用程序[重复]
【发布时间】:2013-03-31 08:05:27
【问题描述】:

我是 android 的新开发人员,正在努力开发我的应用程序,因为我需要一个函数或其他东西来读取并返回设备上安装的应用程序,如果有人可以帮助我,谢谢

【问题讨论】:

    标签: android


    【解决方案1】:
    //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);
                }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-06-30
      • 2017-04-21
      • 2011-02-21
      • 2011-06-05
      • 1970-01-01
      • 2018-06-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多