1. Are you ready for the Galaxy S20? Here is everything we know so far!

can android do this...

Discussion in 'Android Development' started by chrisadam, Aug 4, 2010.

  1. chrisadam

    chrisadam Lurker
    Thread Starter

    Hey guys I have a specific question regarding android work on phones.

    Can the phone "vibrate" function be accessed?
    Specifically can it be accessed and controlled?

    For instance, I want an app to barely "ting" the vibrate function on certain events. Not a full second of vibrate, but less.. significantly less.

    So lets say a regular vibrate function calls a phone to vibrate for 1 second.
    Can a function be called to use vibrate for less than that second, like half of that, or half of that half.. and so on.

    does this make sense?

    Thank you for taking the time to read this, I dont need to know how, I just want to know if it is a possibility..

    I welcome thoughts and comments.

    -Chris
     



    1. Download the Forums for Android™ app!


      Download

       
  2. jonbonazza

    jonbonazza Android Expert

    Yes, it can.

    EDIT: You can set the length of the vibrate in milliseconds too.
     
    chrisadam likes this.
  3. chrisadam

    chrisadam Lurker
    Thread Starter

    what a fast response!

    I went back to spellcheck my post here and kidna re stated it to make more sense... by the time I hit "save" you replied and answered my question lol.

    I really appreciate that.

    Thank you
    -Chris
     
  4. jonbonazza

    jonbonazza Android Expert

  5. id0001

    id0001 Well-Known Member

    konreu likes this.
  6. chrisadam

    chrisadam Lurker
    Thread Starter

    Thank you for this info, I have not yet begun to develop for android, I am more or less putting together a game plan for moving forward.

    I appreciate you looking this up for me!

    -Chris
     
  7. cp1

    cp1 Android Enthusiast

    You need to remember to set the permissions for vibrating, or else you'll get force close errors.
     
Loading...
Similar Threads - android
  1. cidea
    Replies:
    3
    Views:
    52
  2. DaneWells91
    Replies:
    6
    Views:
    226
  3. RedHeadDev
    Replies:
    3
    Views:
    284
  4. Anirudha Deshpande
    Replies:
    0
    Views:
    183
  5. Sunny Rio
    Replies:
    9
    Views:
    370
  6. AntiMorrisey
    Replies:
    2
    Views:
    528
  7. Troubled Koentje
    Replies:
    20
    Views:
    741
  8. Alchemist Studio
    Replies:
    0
    Views:
    339
  9. mlgch1
    Replies:
    8
    Views:
    493
  10. zoezydk
    Replies:
    7
    Views:
    563

Share This Page

Loading...