I'm using "callOnClick()" in my android app
but it's suppose to support min android API 8.
how can I imitate button click un API 8?
mSwitchBg
is of type ImageView
try this:
mSwitchBg.performClick();
it will work from API level1
Try using mSwitchBg.performClick()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With