this doesn't work
Intent marketLaunch = new Intent(Intent.ACTION_VIEW);
marketLaunch.setData(Uri.parse("market://details?id=myVirtualHealthCheck.com.Android"));
startActivity(marketLaunch);
but the web link does....
https://market.android.com/details?id=myVirtualHealthCheck开发者_运维百科.com.Android
this is super confusing, any ideas?
Im not sure this helps but just for your knowledge (though it seems in your attached example code that everything you did is fine) the application ID (=your package: myVirtualHealthCheck.com.Android) has to be written exactly in the same case as it is in the android market.
For example this code would not work:
marketLaunch = new Intent(Intent.ACTION_VIEW);
marketLaunch.setData(Uri.parse("market://details?id=myvirtualhealthcheck.com.android"));
startActivity(marketLaunch);
in the above example the id is in lower case, as oppose to the actual id in android market which is myVirtualHealthCheck.com.Android, hence using it will result with "page not found error"
I guess the available apps differ from device to device...
You might want to read up on Android Market filters:
When a user searches or browses in Android Market on an Android device, the results are filtered based on which applications are compatible with that device. For example, if an application requires a camera (as specified in the application manifest file), then Android Market will not show the app on any device that does not have a camera.
Declarations in the manifest file that are compared to the device's configuration is not the only part of how applications are filtered. Filtering might also occur due to the user's country and carrier, the presence or absence of a SIM card, and other factors.
精彩评论