SyntaxFix
Write A Post
Hire A Developer
Questions
Just write this simple line of code :-
button.performClick();
where button is the reference variable of Button class and defined as follows:-
private Button buttonToday ; buttonToday = (Button) findViewById(R.id.buttonToday);
That's it.