08/02/2009, 12:19 PM
|
#1 (permalink) |
|
Member
![]() ![]() Join Date: Jun 2009
Location: Sunnyvale CA
Posts: 699
Likes Received: 6
Thanks: 19
Thanked 160 Times in 72 Posts
|
Does anyone know what to call if I want to make the phone vibrate? I can't seem to find what servicerequest to use for this.
|
08/02/2009, 12:54 PM
|
#2 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 54
Likes Received: 0
Thanks: 6
Thanked 7 Times in 7 Posts
|
Go to sounds & ringtones, and make sure vibrate and sounds are both on. If you don't want a ringer just turn the sound slider down.
Still waiting for more vibrate options though (eg vibrate 2 or 3 times for sms/emails. Hope that helps. |
08/02/2009, 01:01 PM
|
#5 (permalink) | |
|
Member
![]() Join Date: Jul 2009
Posts: 390
Likes Received: 0
Thanks: 8
Thanked 38 Times in 31 Posts
|
Quote:
|
|
08/02/2009, 03:05 PM
|
#6 (permalink) |
|
Member
![]() ![]() Join Date: Jun 2009
Location: Sunnyvale CA
Posts: 699
Likes Received: 6
Thanks: 19
Thanked 160 Times in 72 Posts
|
I got a bit further, saw this:
this.controller.serviceRequest ("palm://com.palm.vibrate", { method: 'vibrate', parameters: { 'period': 0,'duration': 100 } }); When I do this, the emulator logs: Error: service request: com.palm.vibrate is not running This makes sense in the emulator. On the actual phone nothing happens. |
08/02/2009, 04:44 PM
|
#7 (permalink) |
|
Member
![]() ![]() Join Date: Jun 2009
Location: Sunnyvale CA
Posts: 699
Likes Received: 6
Thanks: 19
Thanked 160 Times in 72 Posts
|
Ok I figured it out. The app needs the com.palm.app.xxxxx name in order for this to work. I have created a version of my scientific RPN calculator with vibrating keyboard feedback with this
|
08/17/2009, 10:47 AM
|
#9 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 61
Likes Received: 0
Thanks: 7
Thanked 11 Times in 8 Posts
|
Was there a conclusion on this? When I try the standard service call
this.controller.serviceRequest( "palm://com.palm.vibrate", {method: 'vibrate', parameters: { 'period': 0,'duration': 75 }} ); I'm still getting "com.palm.vibrate is not running". How do I fix this? |
08/17/2009, 01:43 PM
|
#11 (permalink) |
|
Member
![]() ![]() Join Date: Jun 2009
Location: Sunnyvale CA
Posts: 699
Likes Received: 6
Thanks: 19
Thanked 160 Times in 72 Posts
|
Where do you get this? It should run absolutely fine. I get this error in the emulator (which can of course not vibrate, doh
) and you also get it when your app doesn't have a com.palm.app.xxx ID.
|
08/17/2009, 02:43 PM
|
#12 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 61
Likes Received: 0
Thanks: 7
Thanked 11 Times in 8 Posts
|
Oh, now I see what you mean with the com.palm.app.xxx. I'm guessing that means that I won't be able to use any kind of touch feedback in Palm's app store? I did get it to work, but now a dialog pops up after it vibrates saying "{"returnValue":true"". What is that all about? Why isn't vibrate a standard Service like LBS or video playback?
|
10/29/2009, 07:38 PM
|
#17 (permalink) |
|
Member
![]() Join Date: Jul 2009
Posts: 79
Likes Received: 0
Thanks: 11
Thanked 4 Times in 3 Posts
|
when I use this in my app I can't seem to get the vibrate to vibrate on time. There seems to be a sec or two delay. I use it on a button and it pushes a scene. I get the jolt but its late. Then the same thing on toggle. Its late. Any idea to fix it.
|
12/12/2009, 08:52 AM
|
#19 (permalink) | |
|
Member
![]() ![]() Join Date: Oct 2009
Posts: 160
Likes Received: 1
Thanks: 40
Thanked 35 Times in 19 Posts
|
Quote:
Thanks very much. Worked for me! |
|
12/12/2009, 01:13 PM
|
#20 (permalink) |
|
Member
![]() ![]() Join Date: Jun 2009
Posts: 428
Likes Received: 0
Thanks: 23
Thanked 150 Times in 63 Posts
|
I use a vibe as "haptic feedback" in WOG O.S.K. and didn't have to use the palm name.
Here's the one line I call. Mojo.Controller.getAppController().playSoundNotification("vibrate", "",1) where 1 is the duration of the vibe in ms. Can't seem to get it any less than 10, but it vibrates on screen touch. Using the palm.app namespace will keep your app out of the app catalog.
__________________
WOG Dev - WebOS Group http://www.WebOSGroup.com PMP Dev - http://www.PimpMyPre.com Apps: WOG O.S.K., WOG Card Keeper, WOG Glowstick, WOG Kid Protect, PreLoad, PimpMySounds |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



