Bluetooth-Notification is a project mainly written in Java, it's free.
Get notified when devices connect/disconnect from phone
Get notified when devices connect/disconnect from your Android phone.