开发者

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

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();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜