I am trying to retrieve my current location on the button click in an editbox using gps or network..i have tried all possible methods which i found in tutorials and older posts.
Android 2.3.x SDK (API 9 and 10) emulator has bug with GPS. You should try your code on 2.2 (API 8)