We have a special mobile version of our site that we would like to promote in the android marketplace. The "app" would effectively be a shortcut to the website, but you would be able to download it and have an icon for it, just like any other app.
Is this possible? If so, can you link me to instructions? I was not able to find any info searching google.
Thanks, Jonah
This is possible and fairly easy.
Your application would be a single Activity. That activity would create a new intent based on the info here on the google intents. The intent would be of type VIEW_ACTION and you'd give it an url as a value. Then you'd simply do:
onCreate(Bundle bundle){
Intent myIntent = new Intent(Intent.VIEW_ACTION, Uri.parse("http://www.google.com"));
startActivity(myIntent);
}
The rest of the exercise is just wrapping that with the AndroidManifest.xml and putting it into the market.
The alternative would be to provide a webview, but, thats pretty pointless if your website is designed to function in a mobile browser already.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With