How to write a method to implement seekbar and Test case to test android seek bar

hi,
sendkeys method will not work for seekbar in android. How to do that ?
I want a to test the moveTo position when we move the seek bar?

Thank you

try to setValue() method