I have a grid type of layout. When the app first loads, there are 3 buttons. I am using “Adapter” for the layout.
ONCLICK of the button, I want to refresh the same activity but with different set of 9 buttons.
Do I start a new Activity in all? OR Make a temporary activity to start the previous activity (and how)?
Since the ONCLICK event is written in the “Adapter” part of the code, starting new activity on click of the button is difficult. (is out of my knowledge).
I have a grid type of layout. When the app first loads, there are
Share
In the adapter class, we can start an activity using
context.startActivity(intent)I did not know that we can access “start Activity” from adapter…but now it’s working just fine!!
Thanks a lot for your recommendation…