refer this blog for maps v2
http://ramsandroid4all.blogspot.in/2013/03/google-maps-android-api-v2.html

On 23 September 2014 17:36, saex <[email protected]> wrote:

> Welcome all
>
> The tiles of the map are not being updated, the only way to update them is
> to block the device (onPause called) and to unblock the device (onResume
> called). If i do that, the tiles become updated.... it is very strange
>
> i mean that if i move the finger doing zoom or moving the map, the map is
> frozen, and it only reresh it's state when i block and unblock the device
>
> all the permissions are fine and the api key also is fine in the manifest
>
> this is my code:
>
> public class MainActivity extends Activity {
>     MapView map;
>
>     @Override
>     protected void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         LinearLayout main = new LinearLayout(this);
>         main.setLayoutParams(new 
> LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT));
>
>         GoogleMapOptions options = new GoogleMapOptions();
>         options.mapType(GoogleMap.MAP_TYPE_SATELLITE)
>         .compassEnabled(false)
>         .rotateGesturesEnabled(false)
>         .tiltGesturesEnabled(false);
>
>         options.camera(new CameraPosition(new LatLng(0, 0), 1, 0, 0));
>
>         map = new MapView(this, options);
>         map.onCreate(savedInstanceState);
>         main.addView(map);
>
>         setContentView(main);
>     }
>
>     @Override
>     protected void onPause() {
>         // TODO Auto-generated method stub
>         super.onPause();
>         map.onResume();
>     }
>
>     @Override
>     protected void onResume() {
>         // TODO Auto-generated method stub
>         super.onResume();
>         map.onPause();
>     }
>
> }
>
>  --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Thanks& Regards,
Rambabu Mareedu
Senior Software Engineer
Roots Computer Services PVT LTD
+91 9581411199

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to