Android - How to send data to another app without bringing it to the foreground?

你说的曾经没有我的故事 提交于 2019-12-12 06:44:46

问题


We are planning to link our app with another person's app, and we would like to know, how would we be able to in Android for our app to send data to that other person's app without bringing the other app to the foreground?

Would this solution work?: How to Send BroadCast from one app to another app

I would like to know for sure before I proceed.


回答1:


Yes. Send your data using a broadcast Intent and implement a BroadcastReceiver on the receiving app. This will not automatically bring the receiving app to the foreground.



来源:https://stackoverflow.com/questions/56118445/android-how-to-send-data-to-another-app-without-bringing-it-to-the-foreground

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!