I want to write an app which launches android market. (The activity should only开发者_如何转开发 one activity) so plz refer me the android market link or any suggestion.
Uri uri = Uri.parse("market://search?q=barcodes");
Intent intent = new Intent (Intent.ACTION_VIEW, uri);
startActivity(intent);
This example code will launch the market and search for barcodes.
To send an SMS with a link to an app on the market place, the simple approach is to use bit.ly for a URL Shortener.
When the browser on the phone resolved the URL it will prompt if they want to open it up in the market place. This approach while not perfect works for my apps
精彩评论