This is strange because yesterday the code was working but not today. I'm pretty sure I did not change anything.
This is the thing that I have a blank array list for the first time, then I call another activity which will be a string for the previous activity that I add to the album.
The problem is that every time I start that new activity and it gives a new string, then my Aralist is empty, so I only see the last returned string. On my ListView
I tried something about SavaveInstanceState, but it did not help. any idea? Thank you.
Edit: I call other code with this code in a simple way
intent I = new intent (this, activityAdru . category); StartActivityForResult (i, S.REQUEST_CODE_0); I return data from that other way in another way:
intent = new intent (); String rule = some over operation (); I.putextra (SURULE, Rules); SetResult (RESULT_OK, i);
your code looks ok Make sure setResult (RESULT_OK, i) is always called when another activity begins.
No comments:
Post a Comment