Ignoring the aspect of the background image (actually this is not what you asked about in general):
The way this works on a running application is that both devices will need to run the application. Then they both need to register via Bluetooth using Bonjour / GameKit.
Bluetooth- iPhone/iPad bluetooth bluetooth-, .
Bluetooth- , iPhone.
: GameKit.
. , ... : NDA.