Internet Connection

Put your problem here if it does not fit any of the other categories.

Internet Connection

Postby rohan » Wed Mar 19, 2008 4:57 pm

Hi all,
I am new to android. I want to just try an application that has a button and when button clicked it should go to "http://www.google.com". how should i do this? I want to know how to connect to Internet?
Please help

Thanx in advance.
rohan
Developer
Developer
 
Posts: 34
Joined: Wed Mar 19, 2008 2:26 pm

Top

Re: Internet Connection

Postby mathiastck » Tue Mar 25, 2008 7:34 pm

rohan wrote:Hi all,
I am new to android. I want to just try an application that has a button and when button clicked it should go to "http://www.google.com". how should i do this? I want to know how to connect to Internet?
Please help

Thanx in advance.

This will launch the browser activity

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.                         Intent openBrowser = Intent.getIntent("http://www.google.com/");
  2.                         startSubActivity(openBrowser, ACTIVITY_CREATE);
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
mathiastck
Freshman
Freshman
 
Posts: 6
Joined: Wed Feb 06, 2008 12:47 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 11 guests