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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:07:22+00:00 2026-05-25T02:07:22+00:00

How do you allow the device to vibrate or make a sound when a

  • 0

How do you allow the device to vibrate or make a sound when a notification is launched.

Ive heard of the FLAGS. But how would i use them for Sound and Vibration?

  • 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-05-25T02:07:23+00:00Added an answer on May 25, 2026 at 2:07 am

    Edit In Android v4 support library, there is NotificationCompat.Builder and the method setSound which will work if using that class instead. However, the info below will still work.

    Notification notif ... //create your notification
    
    notif.defaults |= Notification.DEFAULT_SOUND;
    notif.defaults |= Notification.DEFAULT_VIBRATE;
    

    That adds sound and vibrate.

    Always remember to check the docs. They have a LOT of answers, such as this one:

    http://developer.android.com/guide/topics/ui/notifiers/notifications.html

    That has the info I posted above as well as info on how to use a custom sound or vibrate and also the entire process of creating a notification.

    EDIT: Don’t forget to include the Vibrate permission in your manifest.

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

Sidebar

Related Questions

To allow caching a PHP generated file, I want to make sure, that the
SVN externals allow you to make an SVN folder appear as if it's at
I'm trying to create an app that when installed on a device allow me
Is it possible to use a USB device peripheral that I have created directly
WebKit introduced the -webkit-device-pixel-ratio media feature and window.devicePixelRatio JavaScript property, to allow web authors
I am developing on BlackBerry 4.7 Storm device. Reminder: My application will allow user
I've had to allow landscape orientation in all my views because one of them
I was wondering why smartphone/mobile device OSs are not written to allow dynamic languages
What is best way to allow user to pick date from a mobile device
We use a data acquisition card to take readings from a device that increases

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.