Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9162611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:15:07+00:00 2026-06-17T14:15:07+00:00

I am new to Android. Here, I want to implement Swipe Gesture to navigate

  • 0

I am new to Android. Here, I want to implement Swipe Gesture to navigate between Activities. I have googled it and found different answers in different sites. But I could not get the exact point.
By reading all of them I got that we need to implement onTouchEvent() and onFlingEvent().

Are these functions enough to implement the Swipe action?
Please specify on How to proceed step wise to implement swipe gesture.

I am sorry if I asked you a very simple question as I have asked this question after a long long try of many code snippets.

Can any one please clear my doubt?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T14:15:08+00:00Added an answer on June 17, 2026 at 2:15 pm

    onTouchEvent is enough. What you want to do is:

    • Create a VelocityTracker and feed it the
      touch results from the view.
    • When you get a UP event, check what the velocity was. If its more
      than some threshold amount in the X direction, that counts as a
      swipe.
    • Start a new activity when you recognize it.

    You’ll likely have to play with the threshold a bit, otherwise a sloppy tap could be mistaken for a swipe.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question about communication between activities on implementation program of Android. Here
I am new to android programming. In my application, i want to implement automatic
I've managed to implement a great listview that I found here http://www.learn-android.com/2011/11/22/lots-of-lists-custom-adapter/comment-page-1/ but I
Extreme Android developer newbie here...well, new to Android development, not development in general. I
I am new to xml and android programming.Here is my xml code... I don't
I'm new here and I hope I could get some help with an Android
I'm new at Eclipse and the Android applications making so here comes a very
i am creating a new android application.i am using the table layout. I have
I am a new android app developer and i want to use google map
I'm looking to implement my first Android database, but I have so many questions

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.