Xamarin Android:使用IntentService来监听远程通信

时间:2016-10-12 20:45:01

标签: xamarin communication intentservice android-intentservice

我有两个设备,我需要让一个设备成为另一个设备的监听器。例如,第一个设备必须通过UDP协议向第二个设备发送信号以加载应用程序(使用我定制的鼠标/键盘)来控制第一个设备。

即使使用IntentService进行监听,如果内存不足,服务仍然可以被设备杀死。从文档中,我可以使用重新传递意图标志来重新启动服务。手机如何知道重启该服务需要多少内存。

0 个答案:

没有答案