private GoogleMap mMap;
mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map))
.getMap();
LatLng currentView = new LatLng(lat, lon);
mMap.getUiSettings().setZoomControlsEnabled(true);
mMap.getUiSettings().setAllGesturesEnabled(false);
CameraPosition cameraPosition = new CameraPosition.Builder()
.target(currentView)
.zoom(17)
.bearing(90)
.build();
Well, my v2 map code looks like this:
mMap.addMarker(new MarkerOptions()
.position(currentView)
.title(intent.getStringExtra("address"))
.snippet("Alert: " + intent.getStringExtra("alert") + ", Speed:" +
intent.getStringExtra("speed"))
.draggable(true));
mMap.moveCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));
I'm not sure if I need to perform some kind of check to see what version
the user is using and then write code for that version, or if this code can
somehow be supported in older androids using an environment variable.
On Tuesday, April 9, 2013 8:00:19 PM UTC-4, RichardC wrote:
>
> The sample works from Android platform version 8, which is Android 2.2.
> You need to give us more information about what you have done in your
> project.
>
> On Tuesday, April 9, 2013 11:09:56 PM UTC+1, John Merlino wrote:
>>
>> I wrote my application using Google Maps Android api v2, but when
>> trying to run the app on gingerbread, for example, it says the app is
>> not supported. What's the quickest way to support older devices with
>> google maps android api v2?
>>
>
--
--
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/groups/opt_out.