android - calling ui thread from worker thread

后端 未结 7 2088
再見小時候
再見小時候 2020-12-11 00:12

Hi I want to make Toast available to me no-matter-what and available from any thread whenever I like within my application. So to do this I extended the A

7条回答
  •  有刺的猬
    2020-12-11 01:11

    Why don't you send an intent that is captured by a BroadCastReceiver, then the broadcast receiver can create a notification in the notification tray. It's not a toast, but its a way to inform the user that his post has been successful.

提交回复
热议问题