in slideshow of an android application i want to pause the slideshow when i press p and when i press s i want to stop the slideshow.
could you please send me the code for this.