Reputation: 2667
simple app that can be downloaded and installed to the android phone and once clicked on the app will open a URL in the default browser of the phone. pls tell me how to start this application?
Upvotes: 2
Views: 160
Reputation: 5416
At first try with Google before posting in here. Because you are idle person [ i think :) ] I am also giving you the solution also.
In your main activity's onCreate method just use these codes to open google's website :
Intent browserIntent = new Intent("android.intent.action.VIEW", Uri.parse("http://www.google.com"));
startActivity(browserIntent);
finish();
Upvotes: 3