Created
April 2, 2020 07:09
-
-
Save XjojoX1989/68bfc4cc8530e29262cfaf93f6de9566 to your computer and use it in GitHub Desktop.
This file contains 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
class MyIntentService : IntentService("MyIntentService") { | |
override fun onHandleIntent(intent: Intent?) { | |
//此時已在背景執行緒了,可以開始耗時操作 | |
} | |
override fun onDestroy() { | |
super.onDestroy() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment