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
Sorry, displaying in a TextView, not text file.
On Mar 18, 10:05 am, murphy howt...@hotmail.com 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
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
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
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);
5 matches
Mail list logo