Sample bluetooth application with pattern lock