8

Exception setting Imagebutton view on Android 2.3.4

view full story
linux-howto

http://stackoverflow.com – I've been running my app on Android 4.0 and it works just fine. However, I tested it on a phone running Android 2.3.4 and the app crashed. I throws an exception when it tries to set the Imagebutton view: 03-07 17:21:58.789: E/AndroidRuntime(5741): FATAL EXCEPTION: main 03-07 17:21:58.789: E/AndroidRuntime(5741): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.motesclient/com.example.motesclient.ConnectActivity}: android.view.InflateException: Binary XML file line #22: Error inflating class android.widget.ImageButton 03-07 17:21:58.789: E/AndroidRuntime(5741): (HowTos)