How to use Broadcast Receiver in different Applications in Android?

后端 未结 4 2090
日久生厌
日久生厌 2020-11-29 09:04

I have here two applications in two different projects in eclipse. One application (A) defines an activity (A1) which is started first. Then i start from this activity the s

4条回答
  •  萌比男神i
    2020-11-29 09:27

    Still not working for you?

    Though the answers are helpful I still had the a problem. I got the solution here.

    when sending the broadcast add the ff flag:

    FLAG_INCLUDE_STOPPED_PACKAGES flag is added to the intent before it is sent to indicate that the intent is to be allowed to start a component of a stopped application.

    intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);
    

提交回复
热议问题