Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<pre><code> used map v2 map = ((SupportMapFragment) getSupportFragmentManager() .findFragmentById(R.id.map)).getMap(); Cursor c = adp.getaddress(surname);// get address from the database c.moveToFirst(); adderess = c.getString(c.getColumnIndex(SQLiteAdapter.KEY_CONTENT3));// get // address // in // string // for // used // location // for // the // map /* get latitude and longitude from the adderress */ Geocoder geoCoder = new Geocoder(this, Locale.getDefault()); try { List&lt;Address&gt; addresses = geoCoder.getFromLocationName(adderess, 5); if (addresses.size() &gt; 0) { Double lat = (double) (addresses.get(0).getLatitude()); Double lon = (double) (addresses.get(0).getLongitude()); Log.d("lat-long", "" + lat + "......." + lon); final LatLng user = new LatLng(lat, lon); /*used marker for show the location */ Marker hamburg = map.addMarker(new MarkerOptions() .position(user) .title(adderess) .icon(BitmapDescriptorFactory .fromResource(R.drawable.marker))); // Move the camera instantly to hamburg with a zoom of 15. map.moveCamera(CameraUpdateFactory.newLatLngZoom(user, 15)); // Zoom in, animating the camera. map.animateCamera(CameraUpdateFactory.zoomTo(10), 2000, null); } } catch (IOException e) { e.printStackTrace(); } &lt;fragment android:id="@+id/map" android:layout_width="match_parent" android:layout_height="150dip" android:layout_marginLeft="35dp" android:layout_marginRight="35dp" android:layout_marginTop="20dp" class="com.google.android.gms.maps.SupportMapFragment" /&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload