Last active
October 31, 2017 09:23
-
-
Save intari/105574121c21fe94adad97abc604a6e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected var locationServiceConnection: ServiceConnection = object : ServiceConnection { | |
override fun onServiceConnected(className: ComponentName, service: IBinder) { | |
// This is called when the connection with the service has been | |
// established, giving us the service object we can use to | |
// interact with the service. Because we have bound to a explicit | |
// service that we know is running in our own process, we can | |
// cast its IBinder to a concrete class and directly access it. | |
//locationService=(MySLocationService.LocalBinder)service; | |
locationService = (service as MyLocationService.LocalBinder).service | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment