View pager has some problems!

Describe your issue

When I am trying to live test my app which contains View Pager the companion stucks after working sometime.
Companion works for some time ( 5 to 10 seconds ) and after that hangs or stucks.Nothing works.I have to restart companion each time.
Sometimes it shows this error:

java.lang.StackOverflowError: stack size 8MB

Steps to reproduce the issue

Use View Pager in any project and live test it.

Expected Behaviour

View Pager worrks smooth without any hang.

Actual Behaviour

It stucks companion.Nothing works.

Show your Blocks

image

Android version

Android Nougat ( 7.0 ) Blustacks 4

Looks like you create a infinite loop?!
I dont understand why you select the already selected page everytime again and again.

You call select page one if page one is already selected?! Sense?

BTW:

Android Nought

? This does not exist… It is called Android Nougat

3 Likes

Sorry, accent problem.
Thank you for your reply.
I was totally aware of using View Pager event methods.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.