Local Notifications in Android?

后端 未结 3 493
半阙折子戏
半阙折子戏 2020-12-07 14:12

In iOS, a \"Local Notification\" is used by an app when it is in the background, to inform the user that something has happened, that they might want to pay attention to:

3条回答
  •  失恋的感觉
    2020-12-07 14:41

    LocalBroadcastManager looks like a better solution: http://developer.android.com/reference/android/support/v4/content/LocalBroadcastManager.html Create your own custom Intent action, broadcast it to your process, and make sure any activity etc. is registered as a receiver for that intent.

提交回复
热议问题