I want to get the longitude and latitude of device. I used location api to get the longtitude and latitude the problem now I am facing is that I could not call the getLocation()
method inside button click event. It throws an error as getLocation()
method cannot be called from event thread.Can any one tell me how to solve this problem?
Recently, I created a simple application to get the GPS location and display it on an Android phone. In the beginning I was able to get the location after a few tries. But, after I reinstalled the APK ...