Some Android devices don’t have Android Market, like Korea, etc.
Is it possible to detect the existence of Android Market at runtime?
I know I can try to open a market uri first to see if there is any exception thrown. But I don’t think this is a wise approach.
Create the
ACTION_VIEWIntentfor the MarketUri, then usePackageManagerandqueryIntentActivities()to see if you get anything back. If that returns an empty list, you know nothing on the device handles MarketUrivalues.