I’m doing some android code today and now the problem is I need to get the variables passed. The scene is that I need to login first to facebook then fetch my information. afterwards here comes a splash screen where it will display my name, etc info using the intent. afterwards the main screen will now appear and all of the data from the splash screen will now be passed to the main screen using also an intent but the problem is that this main screen is just a container for my tabViews wherein I can navigate anytime from one page to another and I think there is no need for me to use the intent again in this part. Now I need to get all the passed data from which is passed to the main screen down to one of my tab and display it on a TextView.
Share
Define Variable as Public Static or another option is store variable’s value into Shared Preferences and retrieve value of preferences in next activity and refer below links for more information.
Shared Preferences