Inside if (mPager.getCurrentItem() == mCurrentPageSequence.size()) { }
For one page variable:
String data = mWizardModel.findByKey("Sandwich:Bread").getData().getString(Page.SIMPLE_DATA_KEY);
For a personalized page:
String data = mWizardModel.findByKey(THE_KEY).getData().getString(CustomerInfoPage.YOUR_DATA_KEY);
If you want to assign data back to the wizard, put this at the end of onCreate in FragmentActivity:
Bundle data = new Bundle(); if (!TextUtils.isEmpty(DATA_STRING)) { data.putString(Page.SIMPLE_DATA_KEY, DATA_STRING); mWizardModel.findByKey("Sandwich:Bread"").resetData(data); }
The key "Sandwich: Bread" is shown in the example, change any option that suits you. Never try multi, I think it is more or less the same.
Allen chan
source share