1. Download our Official Android App: Forums for Android!

Apps can android do this...

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

  1. chrisadam

    chrisadam Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Aug 4, 2010

    Aug 4, 2010
    3
    0
    5
    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
     

    Advertisement

  2. jonbonazza

    jonbonazza Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,930
    Joined:
    Jul 13, 2010

    Jul 13, 2010
    1,930
    457
    163
    Male
    Yes, it can.

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

    chrisadam Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Aug 4, 2010

    Aug 4, 2010
    3
    0
    5
    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
    Rank:
    None
    Points:
    163
    Posts:
    1,930
    Joined:
    Jul 13, 2010

    Jul 13, 2010
    1,930
    457
    163
    Male
  5. id0001

    id0001 Well-Known Member
    Rank:
    None
    Points:
    38
    Posts:
    142
    Joined:
    Apr 20, 2010

    Apr 20, 2010
    142
    23
    38
    Student.. also software developer
    Netherlands
    konreu likes this.
  6. chrisadam

    chrisadam Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Aug 4, 2010

    Aug 4, 2010
    3
    0
    5
    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
    Rank:
    None
    Points:
    53
    Posts:
    375
    Joined:
    Apr 30, 2010

    Apr 30, 2010
    375
    35
    53
    You need to remember to set the permissions for vibrating, or else you'll get force close errors.
     

Share This Page

Loading...