Link, comment.

http://stackoverflow.com/questions/2541802/android-switch-tabs-from-within-an-activity-within-a-tab

Looks to be close enough given the question so far. I'd join the stack and code project.com for programming questions.
Bob