last day (15 days later) » 

4:31 PM
1
A: Update View with updated data in Android

r4jiv007okay , there are multiple ways to do it :- you can use a static variable to store you data that too of application level ( might not be a good approach ) check the value of vairable in onResume() and set it to the view. you can use sharedpreferences if your data is not that large , store the da...

 
I don't want to use any static variable, don't want to store anywhere.
What about If I there are four activities A->B->C->D then I am getting updated data in D then want to set that data in TextView of A. then should I use onActivityResult I can not use here @nikis told
 
then you can go with sharedpreferences and clear the preferences when you are done
 
No that is not I want
 
then your data will get destroyed !!
 
Why here it is not good practice to use LocalBroadCastReceiver ??
What if I use my custom callback for this ??
+1 for good answer but did not accept it because did not answer me completely
 
4:31 PM
you should go with the standard practice and thats what i was telling you
 
Yes that's good if I use my custom callback then that is not standard practice ??
 
in this case i think no !!
hey u there ?
 
5:29 PM
@r4jiv007 Hi
I am here
 
5:53 PM
@Mick are u still there ?
 
Yes
Did you get my question
 
okay so , first of all i want to know why are u not saving your data
 
My question we can do same using own custom callbacks ?
 
yes i do got it
well i haven't done that way
i have used callbacks
 
because I don't want to save that stuff anymore want to learn how this could be done in other ways
 
5:54 PM
only for fragment-activity communication
okay let me discuss it with my friends i'll get back to you
 
okay please do
 
but it will take time , its 11:30 PM here
will get back to you tomorrow
:P
 
okay No problem
I will accept you answer when you answer this to me
rest your answer is good that's why I upvoted
 

last day (15 days later) »