Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从我的活动课程发送消息?例如,我有一些按钮,并在另一个类中提供服务。
对于我的按钮,我写了 onCLick() 并想要这样做`
Handler h = new Handler(); public void click(Viev v) { Mesaage m = new Message(); m.waht = 11111; h.sendMessage(m); }
类似的东西,我如何在服务类中捕获该消息以启动它们?