Android 마켓이Android 마켓 또는 Google Apps의 패키지 이름은 무엇입니까?
/*
* Test for existence of Android Market
*/
boolean androidMarketExists = false;
try{
ApplicationInfo info = getPackageManager()
.getApplicationInfo("com.google.process.gapps", 0);
//application exists
androidMarketExists = true;
} catch(PackageManager.NameNotFoundException e){
//application doesn't exist
androidMarketExists = false;
}
처럼 설치되었는지 확인해야합니다. com.google.process.gapps가 안드로이드 마켓을 가지고 있는지 여부는 알 수 없습니다.
내가 진짜 패키지에 foo를 변경해야합니까? – jax
나는 이것에 완전히 동의하지 않는다. 전화와 관련이없는 다른 마켓 애플 리케이션이있을 수 있으며 이것들은 market : // intents를 처리 할 수있다. 특별히 Google의 마켓 앱을 확인해야하는 경우 패키지 관리자의 com.android.vending을 어떻게 든 확인해야 할 수도 있습니다. – greg7gkb