How can I receive values from 2 Activities, (passing data)?
I have 3 Activity, ActivityOne, ActivityTwo, ActivityThree. I want to send value(passing data) from ActivityOne to ActivityThree, and ActivityTwo to ActivityThree.
All data in ActivityThree not be destroy, so all value data from ActivityOne and ActivityTwo any in ActivityThree. Data from ActivityOne save temporary variable in ActivityThree and data from ActivityTwo save temporary variable in ActivityThree too. So I can show all values data from ActivityOne and ActivityTwo in ActivityThree together,
Can I make SharedPreferences? If yes, can any one provide an example?
Using SharedPreferences is not a bad Idea but your requirement is temporary. So better you use Bundle Extras. Take Bundle object and pass all your first activity variables to Second Activity through bundle. Retrieve the bundle from the intent and put the second activity variables in the same bundle and pass the same to Third Activity. Retrieve the Bundle in Third Activity and use them. I hope this will help you.
retrieving in second activity
Retrieve the bundle and use it in Third Activity