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
Using java Syntax Highlighting
- try{
- HttpClient client = new DefaultHttpClient();
- HttpGet request = new HttpGet(url);
- HttpResponse response = client.execute(request);
- } catch (Exception e){
- Log.e(TAG, "No connection!");
- }
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
I don't understand reasons of absent connection(

