I've never developed for Android before, so please consider me 100% dumb when you answer :)
I would like to create an application launcher that will open the default web browser to a given url. In other words, I want to make an icon with my website logo, and when you click on it, it opens the site in your default web browser.
Could someone direct me towards a tutorial/documentation page to achieve this? Or if it's really simple, maybe show me some code here?
Thanks for your time!
P
I have written a tutorial for just this :=D
http://www.anddev.org/code-snippets-for-android-f33/button-to-open-web-browser-t48534.html
Modified version:
If I understand what you need correctly, you could just create a simple app with just 1 activity and stick this in the onCreate:
And here are some resources on creating a simple app:
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/HelloWorld.html
And here is some info on how you can set your app icon:
http://www.connorgarvey.com/blog/?p=97
Why do you want to create an application to do this? You can just create a shortcut directly on your home screen.
Here's what to do:
1. Go to the website in your browser
2. Add a bookmark for the site (menu, add bookmark)
3. Go to the home screen where you want the logo
4. Press and hold the screen, when the menu pops up select 'add shortcut'
5. Select 'bookmarks'
6. Find the bookmark you just created and click on it
You are done!!
One line answer