We are using SDK version 22 as our target but have set SDK 17 as minimum. In order to get the current location with coordinates displayed in a editText we used the following code:
Our problem has to do with the method requestLocationUpdates because it requires that we cast 4 parameters as displayed on the image.
After we cast them, there is no error in the code but after running our app we get the following message: application has stopped!