simple app that can be downloaded and installed to the andro开发者_开发知识库id 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?
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();
精彩评论