On Mon, Jul 26, 2010 at 2:58 AM, Amit <[email protected]> wrote: > Hi All, > > I am trying to create a sample application to explore Google maps > through android. > > When I try to run the application I only get the blank grid. no map is > displayed. > > If i see the DDMS logcat i get erros "Couldn't get connection factory > client". > > Please help me in this regard. > > Surprisingly the already installed Google Maps app of emulator is > working fine and showing me the maps
That means you do not have a valid API key, or possibly that you do not hold the INTERNET permission in your application. > The manifest file looks like - > > <?xml version="1.0" encoding="utf-8"?> > <manifest xmlns:android="http://schemas.android.com/apk/res/android" > package="com.eterno" android:versionCode="1" > android:versionName="1.0"> > <application android:icon="@drawable/icon" android:label="@string/ > app_name"> > <uses-library android:name="com.google.android.maps" /> > <uses-permission android:name="android.permission.INTERNET" /> > <activity android:name=".MapsActivity" android:label="@string/ > app_name"> > <intent-filter> > <action > android:name="android.intent.action.MAIN" /> > <category > android:name="android.intent.category.LAUNCHER" /> > </intent-filter> > </activity> > > </application> > </manifest> <uses-permission> needs to be a child element of <manifest>, not of <application>. Move that to the proper spot, and your activity should start working. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.9 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

