mercredi 21 décembre 2016

Does the WiFi P2P lifecycle allow it to listen to changes when in background?

I've implemented a WifiP2P system based on the WifiDirect DEMO by google. My question concerns the WifiDirectActivity's ability to work in the background, to illustrate this, I'll provide a step by step flowchart of how the app works.

  1. Group owner initializes, client connects to Group owner
  2. Client passes a boolean through a socket connection via a Checkbox
  3. Group owner's activity updates UI with Checkbox status depending on received boolean

Suppose the checkbox system is done in another activity, let's call it UIActivity, launched from WifiDirectActivity &/or BroadCastReceiver (I guess depending on host status)

  • Will the WifiP2P framework still be operating in the background, listening to possible changes in client checkbox, without being destroyed?

Thank you in advance,




Aucun commentaire:

Enregistrer un commentaire