I followed android guide to fetch current location(http://developer.android.com/training/location/retrieve-current.html).
I was previously testing my code on S3 wherein even if GPS is off getLastKnownLocation did return something. But now after testing on nexus I found out that getLastKnownLocation returns some location only if GPS is completely on.
In nexus there is three options for GPS : device only, off, complete. Maybe this has something to do with the problem.
In my application even low accuracy location would suffice. So guys what could be the problem ?