sumanth
sumanth

Reputation: 1

switching between one activities using Touchscreens

How can i switch between activities using Touch screen ( by drag of screen towards left using finger or mouse). I know it can be possible using gesture class, but the problem is i can't switch one activity from other. Please suggest how it can be done. I'm new to Android. So please help and guide me. Thanks in Advance

Upvotes: 0

Views: 285

Answers (2)

Vladimir Ivanov
Vladimir Ivanov

Reputation: 43098

Just detect necessary gesture. When you get one, just start your second activity:

Intent intent = new Intent(context, YourActivity.class);
startActivity(intent);

Upvotes: 1

Kevin
Kevin

Reputation: 1783

use startActivity to start a new activity.

Upvotes: 1

Related Questions