开发者

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

开发者 https://www.devze.com 2023-02-12 07:28 出处:网络
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 app

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

精彩评论

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

关注公众号