So I'm using a gps class to turn on the gps and here's a method that allow us to send to onActivityResult
, but since is deprecated on AndroidX and still available, android team recommend us the next:
it is strongly recommended to use the Activity Result APIs introduced in AndroidX
I have a the following code where I try to send to onActivityResult
val rae = e as ResolvableApiException
rae.startResolutionForResult(context,Constants.GPS_REQUEST)
How do I approach the same thing with the new API?