Hi All,

I am trying write a simple Android program to get public timelines from
twitter corressponding to a keyword. Given below is the snapshot of the code
...below code is blocking on request.getResponseCode() call. Anybody has
idea what could be the problem?

URL url = *new* URL(http://search.twitter.com/search.json?q=pune);
URLConnection connection;
connection = url.openConnection();
HttpURLConnection request = (HttpURLConnection) connection;
int responsecode = request.getResponseCode() ;  // Code is just blocking

I have broadband internet connection at home. From home PC I am trying to
execute program which has above code. The Internet permissions are granted
by adding "<uses-permission android:name=*"android.permission.INTERNET"* />"
line to the manifest file. I have a firewall configured and running on my
PC. I am trying to launch android emulater via eclipse version 3.4.2 (ADT
has been added to the eclipse).

Please let me know if anybody has faced similar problems.

Thanks & Regards,


Reply via email to