Adding Previous Button [Tutorial]

I made a tutorial with code to make the previous button in case anyone is facing some problem with it.
It is quite easy and I have also uploaded the codes for the button in the description.

Watch Youtube Video & Download Code Files Here

Hi, your solution helped me a lot to run and create the previous button but I’m still tricked how this works, could you explain this code?
–> mCurrentIndex = (mCurrentIndex + mQuestionBank.length-1) % mQuestionBank.length; <–

Thank you for this. I’m working on a website now and I’ve had problems with this darn button, but your tutorial cleared everything for me. Thanks again!

Easy to understand tutorial @architj!