How do I put data from Roman Nuriks Wizard Pager review into database?

后端 未结 2 1098
醉酒成梦
醉酒成梦 2021-01-25 02:49

Alright so I know this has been asked before but the question and answer both didn\'t help me in my situation. What I need to do is simply get all of the data from the review pa

2条回答
  •  醉梦人生
    2021-01-25 03:37

    @Derek Smith I have figured out a way to save the data and it works for me.

    This is my AbstractWizardModel class block:

    @Override
    protected PageList onNewRootPageList() {
    
        return new PageList(
                new LoginInfoPage(this, "Login Information").setRequired(true));
    }
    

    It is similar to the sample provided with Library.

    Now in your MainActivity, write as below:

    String data = mWizardModel.findByKey("LoginInformation").getData().getString(LoginInfoPage.EMAIL_DATA_KEY);
    

    The main thing to retrieve data is "key". In my case, key is "Login Information" which is also your title.

    Hope it helps.

    Regards,

提交回复
热议问题