Omri
Omri

Reputation: 385

Android emulator Internet connection in my application

I have a problem with my android emulator on my mac. I can use the browser and load websites so there is an internet connection in my AVD. My application can't connect to the internet, I am aware of the manifest configuration and I have set the internet permission on.

<uses-permission android:name="android.permission.INTERNET" />

The application works well on several devices but never worked on the emulator. What am I doing wrong?

Thanks,

Omri.

Upvotes: 1

Views: 1544

Answers (2)

Muhammad Mubashir
Muhammad Mubashir

Reputation: 1659

Preferrences->Launch settings to Default emulator options: -dns-server and use https on url.

Upvotes: 1

Omri
Omri

Reputation: 385

I solved my problem, James Elsey's question turend me in the right direction. I was trying to reach my own server with a ssl certificate. For some reason the emulator doesn't like my rapidsssl certificate and the connection is timedout. It does work on android devices though. Because the emulator is only for developing I can change the configuration and work with http only without ssl.

Thanks everyone.

Upvotes: 0

Related Questions