this is more like a general question:
Is it possible to create an app, which starts if your phone connects to a specific bluetooth network?
Is that possible on android? If yes, is there any documentation for a start?
They use a BroadcastReceiver for bluetooth like in this article, from which you can do whatever you want. (like launching a new activity or whatever)
here's a small stackoverflow thread about this.
In my opinion it is impossible to do that in that way. Generaly possible is another scenario. Application still works in background and monit if device connect to network. If that happend than can fire another action.
Like nadavfima said, you'll need to use a BroadcastReceiver to listen for Bluetooth connections. When it triggers, you can extract the name of the device that just connected. If that name matches your criteria, then do whatever you want (Launch a new activity etc.)
What they didn't explain is that you need to have your app start a Service, which will register the BroadcastReceiver.
-User installs your app and launches it.
-Button to toggle the service on/off
-User closes your app, but service continues to run