On Emulator no internet connection

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

On Emulator no internet connection

Postby amatorIP » Thu Feb 02, 2012 11:00 am

Hi All!
I have problem with internet connection in my app on emulator.
I have added permission in AndroidManifest.xml and internet connection present on emulator.
I using code
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. try{
  2. HttpClient client = new DefaultHttpClient();
  3. HttpGet request = new HttpGet(url);
  4. HttpResponse response = client.execute(request);
  5. } catch (Exception e){
  6. Log.e(TAG, "No connection!");
  7. }
  8.  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4

I don't understand reasons of absent connection(
amatorIP
Junior Developer
Junior Developer
 
Posts: 10
Joined: Mon Jan 30, 2012 9:32 pm

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 5 guests