Switching between Activities using Touch Screen

Tutorials with advanced 'difficulty' and more Lines of Code.

Switching between Activities using Touch Screen

Postby neham » Tue Jan 18, 2011 1:07 pm

Hi PlusMinus,

How can i switch between activities using Touch screen ( by Sliding 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.

Neha
neham
Freshman
Freshman
 
Posts: 3
Joined: Fri Dec 31, 2010 6:45 am

Top

Re: Switching between Activities using Touch Screen

Postby Pavonis » Mon Jan 24, 2011 3:20 am

Firstly, please only post a question once.
Secondly, do you need to change activity or are you just trying to change your view? You can use a ViewFlipper to change views pretty easily.

Here's some examples:
http://whyandroid.com/android/174-flipp ... views.html
http://www.inter-fuser.com/2009/08/andr ... -flip.html

Hope that helps,
-Pav
Pavonis
Junior Developer
Junior Developer
 
Posts: 17
Joined: Sat Dec 04, 2010 7:54 pm

Re: Switching between Activities using Touch Screen

Postby neham » Tue Jan 25, 2011 12:39 pm

thanks Pavonis,

I want to change activities by dragging the page using touch event. I have used Flipper, but by using flipper animations are performed automatically, but i want to drag the screen by finger or by mouse.

Thanks in Advance.
neham
Freshman
Freshman
 
Posts: 3
Joined: Fri Dec 31, 2010 6:45 am

Re: Switching between Activities using Touch Screen

Postby strider2023 » Wed Feb 23, 2011 1:00 pm

Hi,

I dont think you can drag an activity (Same reason why you cannot zoom in an activity using multi-touch). The only possible solution to me is what Pavonis said.
strider2023
Senior Developer
Senior Developer
 
Posts: 126
Joined: Tue Mar 02, 2010 6:34 am
Location: Chennai, India

Top

Return to Advanced Tutorials

Who is online

Users browsing this forum: No registered users and 5 guests