Can any one differentiate Fragments and shared preferences on android.
Because,
Right now i have a screen which contains an edittext box and button,if i click that button after giving proper input it should return some data according to user’s input on the textbox which is on the same screen, the resultant value is from the webservice by consuming it(SOAP method)…
Here my problem is, i want to show that answer on the tabhost’s tab which is on the next screen…Have i to use fragment concept or shared preference concept?
Can any one help me?
Thanks for your precious time……
Those concepts are not related.
SharedPreferences is used to save data in a persistent way.
Fragments are re-usable UI components.
http://developer.android.com/guide/components/fragments.html
http://developer.android.com/reference/android/content/SharedPreferences.html