java - How to update Master/Detail Flow list Android -


i have question master/detail flow activity. matter have mainactivity, 2 buttons , have 1 java class calls support, located 3 static arraylists. 2 of them different , third 1 use support list - signed 1 of others depends on button. on third list, build master/detail flow. actions on buttons pushing @ mainactivity:

    public void gotorandom(view v){     support.listload=support.list;     intent intent = new intent(this, profilelistactivity.class);     startactivity(intent); }  public void gotoprimary(view v){     support.listload=support.primelist;     intent intent = new intent(this, profilelistactivity.class);     startactivity(intent); } 

problem explanation: problem when start app build correct list of items first choice, not matter button i'll choose - correct. when move , choose button - item list still first selection. detail list works correctly. how can solve problem list of items? think possible destroying list , creating new every time when push button, don't know how recreate activity other activity.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

What is happening when Matlab is starting a "parallel pool"? -

php - Cannot override Laravel Spark authentication with own implementation -