[android-developers] Re: Accessing the internet.

2009-03-18 Thread murphy
I'm a little bit of a beginner with Android. Just finding it hard to suit what I'm doing. What I want my application to do is show a menu when it executes, when one of the buttons on the menu is clicked I want the application to go online to get the data which will populate the textviews/scrollvie

[android-developers] Re: Accessing the internet.

2009-03-18 Thread Carl Whalley
I'm sorry if this info is too basic for you but you didn't say what symptoms you are getting. Ensure you have in your AndroidManifest.xml -- Android Academy: http://www.androidacademy.com Linked In? Join the Google Android group: http://www.linkedin.com/groupInvitation?gid=76373 On Mar 18, 10

[android-developers] Re: Accessing the internet.

2009-03-18 Thread murphy
Sorry, displaying in a TextView, not text file. On Mar 18, 10:05 am, murphy wrote: > Thanks for the help guys. I'm still having problems reading from the > internet and also displaying the retreived content on a text file. Do > you think it's a code problem or a firewall problem or am i missing

[android-developers] Re: Accessing the internet.

2009-03-18 Thread murphy
Thanks for the help guys. I'm still having problems reading from the internet and also displaying the retreived content on a text file. Do you think it's a code problem or a firewall problem or am i missing some bit of code in the manifest to access the internet? On Mar 11, 7:19 am, ku fu pand

[android-developers] Re: Accessing the internet.

2009-03-11 Thread ku fu panda
public static InputStream getInputStreamWithHttpClient( String resourceURL ) throws IOException { // Create an instance of HttpClient. HttpClient client = new DefaultHttpClient(); // Create a method instance. HttpGet method = new HttpGet( resourceURL );

[android-developers] Re: Accessing the internet.

2009-03-11 Thread ku fu panda
public static InputStream getInputStreamWithHttpClient( String resourceURL ) throws IOException { // Create an instance of HttpClient. HttpClient client = new DefaultHttpClient(); // Create a method instance. HttpGet method = new HttpGet( resourceURL );

[android-developers] Re: Accessing the internet.

2009-03-09 Thread dillirao malipeddi
public String get_DAtaFromWeb(String url_toconnect)//throws Exception { int connection_Timeout = 1;// 10sec HttpParams my_httpParams = new BasicHttpParams();; HttpConnectionParams.setConnectionTimeout(my_httpParams,connection_Timeout); HttpConnectionParams.setSoTimeout(my_htt