I am trying to load Google mmaps on my activity. After fighting off through a series of errors, my log cat finally shows me this error:
03-11 23:42:08.390: E/MapActivity(712): Couldn't get connection factory client
The map activity doesn't load any content. I tried searching for a solution, and:
- My activity extends MapActivity
- I have given the Internet persmission
<uses-permission android:name="android.permission.INTERNET"/>
- I also told the app that I will use the map library <
uses-library android:name="com.google.android.maps"/>
- My target machine and virtual machine both have API level 10 and both target Google API
- My api key is correct and working.
- I connect to the internet directly using broadband connection.
My guess is that I am unable to the internet. I tried to open the browser in the emulator and failed to open any URL. So I think I don't have access to internet on my emulator. After searching for a while about connecting to the internet on emulator and with reference to this question I tried running the command: C:\program files\android\android-sdk-windows\tools\emulator -avd -dns-server 8.8.8.8
But I ended up with the error:
PANIC: Could not open: C:\Documents and Settings\dwadasi\.android/avd/-dns-serv
r.ini
I couldn't understand where the problem is. I tried installing the APK file on my Android phone[2.3.6] and it worked. But I really need it to work on my emulator as there is lot of development I still need to do.