Hi, first of all I must tell I'm newbie to android development.
I've started an application which uses a ViewPager with an PagerAdapter to slide through pages. All good until now, the problem is I don't know a simple way to pass data between pages. For example I have an EditText on slide 1 for user input and I want to access that value immediatly on slide 2.
I've implemented this by using startUpdate and finishUpdate methods of PagerAdapter but I guess this is not the best practice in this situation. So my question is which is the recommended way to achieve this (also must mention I don't use/want to use page fragments)?
Thanks in advance.
I've started an application which uses a ViewPager with an PagerAdapter to slide through pages. All good until now, the problem is I don't know a simple way to pass data between pages. For example I have an EditText on slide 1 for user input and I want to access that value immediatly on slide 2.
I've implemented this by using startUpdate and finishUpdate methods of PagerAdapter but I guess this is not the best practice in this situation. So my question is which is the recommended way to achieve this (also must mention I don't use/want to use page fragments)?
Thanks in advance.