Eclipse Android Project - Google Maps won't update when zooming in -


hi guys i've got problem :s map literally won't update when zoom it, without street names. enter image description here

i'm using eclipse build app , test using tablet runs on android 4.0.4. i've added in 1 marker test out if you're wondering why default code marker there.

the code app follows:

mainactivity.java:

    package com.chris.mymap;        import com.google.android.gms.maps.googlemap;       import com.google.android.gms.maps.mapfragment;       import com.google.android.gms.maps.model.latlng;       import com.google.android.gms.maps.model.markeroptions;       import android.os.bundle;       import android.app.activity;       import android.view.menu;        public class mainactivity extends activity {  private googlemap map;  @override protected void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);     setcontentview(r.layout.activity_main);      map = ((mapfragment) getfragmentmanager().findfragmentbyid(r.id.map)).getmap();     map.addmarker(new markeroptions()                 .position(new latlng( 0,0))                 .title("hello world"))                 .setsnippet("helllllllllllooooooooo");  }  @override public boolean oncreateoptionsmenu(menu menu) {     // inflate menu; adds items action bar if present.     getmenuinflater().inflate(r.menu.main, menu);     return true; }        } 

manifest:

    <?xml version="1.0" encoding="utf-8"?>     <manifest xmlns:android="http://schemas.android.com/apk/res/android"     package="com.chris.mymap"     android:versioncode="1"     android:versionname="1.0" >      <uses-sdk     android:minsdkversion="8"     android:targetsdkversion="17" />      <permission     android:name="com.chris.mymap.permission.maps_receive"     android:protectionlevel="signature"/> <uses-permission android:name="com.chris.mymap.permission.maps_receive"/>      <uses-permission android:name="android.permission.internet"/>     <uses-permission android:name="android.permission.access_network_state"/>     <uses-permission android:name="android.permission.write_external_storage"/>     <uses-permission android:name="com.chris.mymap.gsf.permission.read_gservices"/>     <!-- following 2 permissions not required use     google maps android api v2, recommended. -->     <uses-permission android:name="android.permission.access_coarse_location"/>     <uses-permission android:name="android.permission.access_fine_location"/>  <uses-feature     android:glesversion="0x00020000"     android:required="true"/>      <application     android:allowbackup="true"     android:debuggable="true"     android:icon="@drawable/ic_launcher"     android:label="@string/app_name"     android:theme="@style/apptheme" >      <meta-data     android:name="com.google.android.maps.v2.api_key"     android:value="5t5daj8l_t67aaaaaawyqjeyuwuaaaaaaaa"/>      <activity         android:name="com.chris.mymap.mainactivity"         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> 

activity_main.xml:

      <relativelayout xmlns:android="http://schemas.android.com/apk/res/android"       xmlns:tools="http://schemas.android.com/tools"       android:layout_width="match_parent"       android:layout_height="match_parent"       android:paddingbottom="@dimen/activity_vertical_margin"       android:paddingleft="@dimen/activity_horizontal_margin"       android:paddingright="@dimen/activity_horizontal_margin"       android:paddingtop="@dimen/activity_vertical_margin"       tools:context=".mainactivity" >  <fragment     android:id="@+id/map"     android:name="com.google.android.gms.maps.mapfragment"     android:layout_width="match_parent"     android:layout_height="match_parent" />        </relativelayout> 

i'm not sure else can do, i've installed google play services, google api's, tried fragmentactivity , supportmapfragment app never load. know else try

any appreciated!

-chris

you should have in androidmanifest.xml:

<uses-permission android:name="com.google.android.providers.gsf.permission.read_gservices" /> 

instead of this:

<uses-permission android:name="com.chris.mymap.gsf.permission.read_gservices"/> 

i have in app , works fine. also, here: https://developers.google.com/maps/documentation/android/start#specifying_permissions


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -