Hi all, I´m also having this problem, with the MapView in SDK 1.0 .. my AndroidManifest also has the ACCESS_COARSE_LOCATION and INTERNET permissions, and the <uses- library> tag too.
Sometimes it works, but in 90% of times LogCat logs this message "ERROR/MapActivity(9520): Couldn't get connection factory client" anybody can help me with this? thank you On 22 set, 06:59, sudheer <[EMAIL PROTECTED]> wrote: > Hello All > > I still face the problem of a grid being shown instead of a map. my > manifest file is copied below > <?xml version="1.0" encoding="utf-8"?> > <manifest xmlns:android="http://schemas.android.com/apk/res/android" > package="BuddyProj.BuddyPack"> > > <uses-permission > android:name="android.permission.ACCESS_COARSE_LOCATION" > /> > <uses-permission android:name="android.permission.INTERNET" /> > <uses-permission > android:name="android.permission.ACCESS_MOCK_LOCATION" /> > > <application android:icon="@drawable/icon" android:label="@string/ > app_name"> > <uses-library android:name="com.google.android.maps" /> > <activity android:name=".BuddyApp" 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> > > Can some one tell me what should I do to get a map displayed instead > of the grid view. > > Best Regards, > Sudheer > > On Aug 21, 12:37 am, David Foelber <[EMAIL PROTECTED]> wrote: > > > Worked for me, thanks! > > > On Aug 20, 3:32 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > > > > Move the uses-permission tags above the application tag: > > > > <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" > > > /> > > > <uses-permission android:name="android.permission.INTERNET" /> > > > > <application android:icon="@drawable/icon" > > > android:label="@string/app_name"> > > > <uses-library android:name="com.google.android.maps" /> > > > > On Wed, Aug 20, 2008 at 3:44 AM, dapper <[EMAIL PROTECTED]> wrote: > > > > > Hi there, > > > > > I am just starting out with android and for my first app after the > > > > tutorial I would like to display a Map. I have basically taken the > > > > Sample code and put it into my own project. However I only seem to get > > > > the grey grid and no map. Can anyone help (banging my head here). I am > > > > using 0.9. > > > > > I know it is something stupid but can't see it. > > > > > Thanks > > > > > This is my main.xml > > > > > <?xml version="1.0" encoding="utf-8"?> > > > > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > > > > android" > > > > android:layout_width="fill_parent" > > > > android:layout_height="fill_parent"> > > > > <com.google.android.maps.MapView > > > > android:id="@+id/map" > > > > android:layout_width="fill_parent" > > > > android:layout_height="fill_parent" > > > > android:enabled="true" > > > > android:clickable="true" > > > > android:apiKey="mymapkey" > > > > /> > > > > </LinearLayout> > > > > > My code > > > > > public class HotelCompanion extendsMapActivity{ > > > > > MapView mMapView; > > > > > [EMAIL PROTECTED] > > > > public void onCreate(Bundle savedInstanceState) { > > > > super.onCreate(savedInstanceState); > > > > setContentView(R.layout.main); > > > > MapView map = (MapView) findViewById(R.id.map); > > > > MapController mc = map.getController(); > > > > mc.setZoom(9); > > > > } > > > > > [EMAIL PROTECTED] > > > > protected boolean isRouteDisplayed() { > > > > return false; > > > > } > > > > } > > > > > and my manifest > > > > > <?xml version="1.0" encoding="utf-8"?> > > > > <manifest xmlns:android="http://schemas.android.com/apk/res/android" > > > > package="dharmesh.android.hotel"> > > > > <application android:icon="@drawable/icon" android:label="@string/ > > > > app_name"> > > > > <uses-library android:name="com.google.android.maps" /> > > > > > <uses-permission > > > > android:name="android.permission.ACCESS_COARSE_LOCATION" /> > > > > <uses-permission android:name="android.permission.INTERNET" /> > > > > > <activity android:name=".HotelCompanion" > > > > 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>- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---