title: How to show current position marker on Map in android?
body: <p>I am developing an application in which I want to display current location using marker in my map. I am using Google Map v2. Here I can display Map and marker when GPS is off ,but not visible any marker on map when GPS on. My requirement is display marker on map with current position</p>
  
  <p>I tried like this,</p>
  
  <pre><code>@Override
  public void onLocationChanged(Location location) {
      // TODO Auto-generated method stub
  
      //locationManger.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0,        
                 this);
  
      ArrayList&lt;HashMap&lt;String, String&gt;&gt; arl = (ArrayList&lt;HashMap&lt;String, String&gt;&gt;) 
              getIntent().getSerializableExtra("arrayList");
  
  
      if(location!=null){
          double latitude = location.getLatitude();
          double langitude = location.getLongitude();
  
  
          myPosition = new LatLng(latitude, langitude);
          CameraPosition position= new  CameraPosition.Builder().
                target(myPosition).zoom(17).bearing(19).tilt(30).build();
          //_googleMap.animateCamera(CameraUpdateFactory.newCameraPosition(position));
  
          _googleMap.animateCamera(CameraUpdateFactory.newCameraPosition(position)); 
          _googleMap.addMarker(new   
                    MarkerOptions().position(myPosition).title("start"));
      }
  </code></pre>