Android: How can i show a toast from a thread running in a remote service?
问题 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 class BroadcastService extends Service { private static final String TAG = BroadcastService.class.getSimpleName(); private MessageFormatter mFormatter = new MessageFormatter(); private BroadcastComm broadCastComm = new BroadcastComm(); private Task commTask = new Task(); private volatile static boolean stopBroadcastRequested = false; private