I just changed my application’s(2.2) version into 1.5. After, that i’ve an error in my XML files like this
error: No resource identifier found for attribute 'onClick' in package 'android'
Why i can’t use that method. Otherwise, is there any additional jars are available to use this method in Android version 1.5. Anyone tell me.
onClickattribute is not defined for API 3 and less. (Android <= 1.5)It works since API 4 (Android 1.6)
EDIT
If you want compatibility you can use:
http://android-developers.blogspot.com/2009/10/ui-framework-changes-in-android-16.html