Home > Mobile >  If pass the Intent will open the activity
If pass the Intent will open the activity

Time:09-27

In the process of learning Android recently, there is a problem has been felt very curious,

At the time of transfer Intent, ` putExtra ` into the data, then you need to use startActivity will send out this Intent,

My question is, if you have an app, he will send an intent on the data to me to write an app, I need to parse the getIntent him, but I don't want to let my app, or hope it runs in the background, you just need to parse intent and then record,

But as I learned there is knowledge, seems as long as the other party send me an intent will open my app, want to ask next everybody, is there a way to achieve what I wish?

CodePudding user response:

The other party is not the Intent to you,,,

CodePudding user response:

Send broadcasts, sendBroadcast

CodePudding user response:

With the service, do not use the activity

CodePudding user response:

EventBus
  • Related