Hello,
Try to do the following:
Create simple "helper" class(factory for your Intents), like this:
import android.content.Intent;
public class IntentManager {
public static final Intent createYourSpecialIntent(Intent src) {
return new Intent("YourSpecialIntent").addCategory("YourSpecialCategory").putExtras(src);
}
}
This will be the factory for all your Intents. Everytime you need a new Intent, create static factory method in IntentManager. To create new Intent you should just say like that:
IntentHelper.createYourSpecialIntent(getIntent());
in your activity. when when you want to "save" some data in "session" just use following:
IntentHelper.createYourSpecialIntent(getIntent()).putExtra("YOUR_FIELD_NAME",fieldValueToSave);
and send this Intent. In target Activity your field will be available as:
getIntent().getStringExtra("YOUR_FIELD_NAME");
So now we can use Intent like same old session(like in servlets or jsp.).
Hope this helps.