I am using the following code to get the current location namely (latitude and longitude), but I am not getting current location (latitude and longitude).
In your android manifest did you set the permissions?
android.permission.ACCESS_FINE_LOCATION
As far as only getting (0,0) co-ords you're probably using the emulator. If you're using eclipse go to the emulator control and at the bottom you can send the fake co-ords to the device