BLOG ARTICLE 패키지 | 1 ARTICLE FOUND

  1. 2012.02.24 [Android] 안드로이드 어플리케이션 설치여부, 패키지 찾기



 private Boolean C2DMServiceCheck(){
        PackageManager pm = this.getPackageManager();
        try
        {
            pm.getApplicationInfo("com.****.***.***", 0);
            Log.d(this.getClass().getName(), (new StringBuilder(String.valueOf(toString()))).append(" *******************").toString());
            return true;
        }
        catch(android.content.pm.PackageManager.NameNotFoundException e)
        {
            Log.d(this.getClass().getName(), (new StringBuilder(String.valueOf(toString()))).append(" *********************").toString());
            return false;
        }
    }

YOUR COMMENT IS THE CRITICAL SUCCESS FACTOR FOR THE QUALITY OF BLOG POST