赛风

作者: 水手在沙漠001 | 来源:发表于2016-11-01 20:40 被阅读0次

    赛风

    赛反思,赛风
    森单

    • 塞饭
    • 塞饭
    • 塞饭
      [(sdfjj )]
      (.sdfj.)
      Use the printf() function.
      private void showTip(final String str) { mToast.setText(str); mToast.show(); }
     private void showTip(final String str) {    
                  mToast.setText(str);    
                  mToast.show();
                 }
    
      private void showTip(final String str) {    
              mToast.setText(str);    
              mToast.show();
             }
    

    sdwfjsjdf

    private boolean isAppInstalled(String uri){        
    boolean isPackageName = false;       
     PackageManager pm = getPackageManager();       
     PackageInfo packageInfo = pm.getPackageArchiveInfo(uri, PackageManager.GET_ACTIVITIES);       
     Log.e(TAG,"packageInfo = "+packageInfo);       
     if(packageInfo != null) {            ApplicationInfo appInfo = packageInfo.applicationInfo;            // 得到包名//                                String appName = pm.getApplicationLabel(appInfo).toString();//app名称            String packageName = appInfo.packageName; //包名            Log.i(TAG, "包名:" + packageName);            for (int j = 0; j < appList.size(); j++) {                if (appList.get(j).packageName.equals(packageName)) {                    isPackageName = true;                    //退出当前for循环                    j = appList.size();                }            }        }        return isPackageName;    }
    

    相关文章

      网友评论

          本文标题:赛风

          本文链接:https://www.haomeiwen.com/subject/otadettx.html