I have an app that creates a display of buttons dynamically using this method
public void ButtonLayout() {
//Creates new layout and params to go with
final LinearLayout llb = (LinearLayout)findViewById(R.id.buttonlayout);
//Creates new buttons and indexes
for(int i = 0; i < count; i++) {
Button displayButton = buttonlist.get(i);
//Adds button to view with index and parameters
if(displayButton.getTag() == tag || tag == null){
llb.addView(displayButton, i, lp);
}
}
}
it then opens up a new activity which is a menu, The menu has buttons on it, I want to be able to recall the above method (reload all the buttons) from my menu activity, I cant just start the first activity again.
Is there a way of doing this?