Skip to content Skip to sidebar Skip to footer

Button.performclick() Is Not Working

I have a simple code which records video on clicking a button. Manual click works fine but myButton.performClick() does not work (the app stops). I have tried setPressed() too but

Solution 1:

what you are trying to do is as soon as it loads you want to start recording. why do you want to automate a button click for that put the code which is inside onclick to a method and in place of myButton.performClick(); call that method


Post a Comment for "Button.performclick() Is Not Working"