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 can downloaded , installed android phone , once clicked on app open url in default browser of phone. pls tell me how start application?

at first try google before posting in here. because idle person [ think :) ] giving solution also.

in main activity's oncreate method use these codes open google's website :

 intent browserintent = new intent("android.intent.action.view", uri.parse("http://www.google.com")); startactivity(browserintent); finish(); 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -