What did you try so far? Is there an application you're working with?
It would be kind of hard to tell you in a generic sense unless you want to keep getting generic answers. such as,
Just display the screen whether or not the device is linked.
aspiring