Button misbehaving

which Android version are you using for your tests?
probably a missing permission?
to find out why the app closes, use logcat

Taifun