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 9200691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:49:27+00:00 2026-06-17T22:49:27+00:00

I am making one application and opening alertdialog using OnLongClickListener of ImageView and also

  • 0

I am making one application and opening alertdialog using OnLongClickListener of ImageView and also ontouch zooming. But when I pressed long than vibrating on so is it possible to turn off vibrating on long click listener. I am using below code:

public OnLongClickListener longClick = new View.OnLongClickListener() {

    @Override
    public boolean onLongClick(View v) {
        Vibrator vibe = (Vibrator)DailySatsangActivity.this.getSystemService(Context.VIBRATOR_SERVICE) ;
        vibe.cancel();
        }
    };
  • 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-17T22:49:28+00:00Added an answer on June 17, 2026 at 10:49 pm

    I think the problem you are facing is Haptic Feedback instead of the normal vibration.

    You can turn-off “Haptic Feedback” by using below code,

    XML attribute: android:hapticFeedbackEnabled //set it true or false in view's xml file for the desired result.

    Java method: setHapticFeedbackEnabled(boolean)

    OR

    You can use Audio Manger class to disable sound and vibration, have a look at setRingerMode method of Audio Manager class.

    Example :

    AudioManager aManager=(AudioManager)getSystemService(AUDIO_SERVICE);
    aManager.setRingerMode(aManager.RINGER_MODE_SILENT);
    

    Hope this will solve your problem.

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

Sidebar

Related Questions

I am making one application which is displays long lat off inserted address. It
I am making one application in MVVM using Galasoft MVVM Light toolkit. However i
I m using jsf2.0. And i m making one email application, I m calling
I am making one application where i am reading mails from Lotus Notes. I
I am making one security related application in android so i am looking for
I'm making a media player application in android where one part of my screen
I am making a view based application. For one of the xib files, I
I'm making a single page application, and one approach I am considering is keeping
I'm making a piano application in Java. This is one of the functions, public
I am making an application in Android, which requires sending bitmap object from one

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.