就像它在标题中所说的那样。我正在尝试从将由另一个应用程序接收的守护线程上的计时器发送意图。我可以这样做还是需要在活动中调用它?
还有什么方法可以找出类需要扩展或实现的内容,而无需尝试找到某人使用它的示例。
run()
我用来从扩展的类中的函数内部调用它的代码TimerTask
// send info
Intent intent = new Intent();
intent.setAction(Intent.ACTION_SEND);
intent.putExtra("MyClass", playing);
intent.setType("*/*");
sendBroadcast(intent);