此Android市场API的方法isInMarket()
。我可以使用此方法检查Android市场中是否存在应用程序?通过API检查应用程序是否已在Android市场中存在
AppInfo mAppInfo = new AppInfo("packagename.example");
if (!mAppInfo.isInMarket()) {
//app non-exist in the android market
}
else {
//app exist in the android market
}
我在模拟器中测试了这段代码,但它不起作用。我怎样才能使它工作?
我能问到Android市场API使用的是? – Kasium 2012-07-06 12:00:07
我几乎知道你正在使用哪个API,因为我试图找到它像疯了一样,但一直无法。 – 2014-06-19 10:29:01