How to determine the sender of Broadcast Intent

后端 未结 2 1108
甜味超标
甜味超标 2020-12-20 20:40

I have an application that is at the same time a broadcast sender and receiver of standard action android.intent.action.SET_WALLPAPER. I want to do some stuff only in a case

2条回答
  •  情深已故
    2020-12-20 21:31

    No.

    If you only want to do something when an action was broadcast by another app (i.e. not yours), I imagine it should be easy to determine that your app didn't send this broadcast, and therefore it was someone else..

提交回复
热议问题