Android: How can i show a toast from a thread running in a remote service?

前端 未结 4 875
囚心锁ツ
囚心锁ツ 2020-12-03 06:07

Android: How can i show a toast from a thread running in a remote service? Whenever i run from a different thread in a service, the app crashes...

public cl         


        
4条回答
  •  广开言路
    2020-12-03 06:12

    Another way to try would be to use an AsyncTask. This Android article is a good one about threading.

提交回复
热议问题