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

  • Home
  • SEARCH
  • 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 8122883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:58:31+00:00 2026-06-06T05:58:31+00:00

In my application i want to use a functionality which can make the vibrate

  • 0

In my application i want to use a functionality which can make the vibrate mode of phone disable or unable. I want to do it through checkbox, i.e. if i click the checkbox, it changes its mode into vibrate visa versa. Any thoughts ??

  • 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-06T05:58:33+00:00Added an answer on June 6, 2026 at 5:58 am

    try this using AudioManager as:

     CheckBox  beijing=(CheckBox)findViewById(R.id.beijing);
    // USE AudioManager  for Settingringing from vibration
                            AudioManager am = (AudioManager)getSystemService(Context.AUDIO_SERVICE);
        beijing.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener(){ 
                    @Override 
                    public void onCheckedChanged(CompoundButton buttonView, 
                            boolean isChecked) { 
                        // TODO Auto-generated method stub 
                        if(isChecked){ 
    
    
                            switch (am.getRingerMode()) {   
                                case AudioManager.RINGER_MODE_NORMAL:   
                                    Log.i("MyApp","NORMAL mode");
                                    am.setRingerMode(AudioManager.RINGER_MODE_VIBRATE);
                                    break;   
                            } 
                        }else{ 
                            switch (am.getRingerMode()) {   
                                case AudioManager.RINGER_MODE_VIBRATE:   
                                    Log.i("MyApp","VIBRATE mode");
                                    am.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
                                    break;   
                            } 
                        } 
                    } 
                }); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use quit functionality in my android application. Is there any way
We have an application which has functionality which can be implemented in several different
I want to write a web application and want to use Ruby. I have
In a Android application I want to use Scanner class to read a list
In my Rails application I want to use the will_paginate gem to paginate on
I'm developing a web application I want to use the role authentication to control
In my Asp.net MVC 1.0 application I want to use CKEditor as my Rich
I want use JQuery mobile for the front-end of my mobile application, but I
I have a .NET application that I want to use as a client to
I have a non-rails application that I want to use rails active-record migrations with.

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.