How to get current location using google maps API in android?
<p>I am new to google maps API so i am wondering how do I get google maps to detect my current location when it is first loaded. Currently it can only display a marker of a hardcoded location but I want it to be my current location. </p>

<p>This is my current hardcoded location code:</p>

<pre><code>@Override
public void onMapReady(GoogleMap googleMap) {
    mMap = googleMap
    LatLng test = new LatLng(33.8675,151.2070);
    mMap.addMarker(new MarkerOptions().position(test).title("test"));
    mMap.moveCamera(CameraUpdateFactory.newLatLng(test));
}
</code></pre>