I have an idea for a simple anti-theft app.
Obviously this would not work against all theft attempts but it will work against some.
Code:
Run app
If charger or USB cable not connected play loud noise
Continue playing noise until charger is connected or password is entered
If password is entered while charger is connected app is closed
Obviously this would not work against all theft attempts but it will work against some.