06/17/2009, 03:57 PM
|
#1041 (permalink) |
|
Member
Join Date: Oct 2007
Posts: 152
Thanks: 9
Thanked 15 Times in 11 Posts
|
I think people want it to vibrate more than once or make it vibrate longer. I personally didn't get it to work for me. I used the exact same code and never got more than one vibrate. I even spaced out the timeouts.
|
|
|
06/17/2009, 04:10 PM
|
#1042 (permalink) | |
|
Member
Join Date: Jun 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
Quote:
The vibrating seems to be handled somewhere else. If I have some time this afternoon I'll take a closer look at how the notifications/vibrations are handled. |
|
|
|
06/17/2009, 04:47 PM
|
#1044 (permalink) | |
|
Member
Join Date: Jun 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
|
Quote:
I'm excatly @ the same point as Gidi, Maybe Peef can upload his Webos file so we can enjoy, now problem for me to supply him with server space. @peef, Please respond here or in PM. Thanks, Nadavi. Last edited by NAdavi; 06/17/2009 at 05:10 PM. |
|
|
|
06/17/2009, 05:10 PM
|
#1045 (permalink) |
|
Member
Join Date: Jun 2009
Posts: 31
Thanks: 1
Thanked 0 Times in 0 Posts
|
Small update from me.
even though it got stuck at 84% on my last trial, when I removed the battery placed it back to turn on the device it booted normaly without any problem. in fact I did have that enable wifi menu but a. could not go back to the activation screen b. when I reset the phone it remembered the wifi settings but still didnt activate. pEEf - did you do any additional thing? |
|
|
06/17/2009, 05:13 PM
|
#1046 (permalink) | |
|
Member
Join Date: Jun 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
|
Quote:
Can you please upload your rom file to any server (e.g. Yousendit.com) Thanks, Nadavi |
|
|
|
06/17/2009, 05:29 PM
|
#1047 (permalink) |
|
Member
Join Date: Jun 2009
Posts: 14
Thanks: 3
Thanked 9 Times in 4 Posts
|
I've found some more info on the vibrate function, it is actually quite simple to implement, as soon as I get my pre (getting it on friday, woot!) I will implement the vibrate function into the messages/notifications as has been requested by many users.
to use the vibrate function you must include the "vibrate.js" file which can be found in '/usr/palm/applications/com.palm.app.deviceinfo/app/models/vibrate.js' from there you can call Vibrate.vibrate() anywhere in the application. It can also take a 'length' argument which sets how long you want it to vibrate (default is 300 ms), so for example if you wanted it to vibrate for 500ms (1/2 sec) then you would call Vibrate.vibrate(500) or if you wanted it to vibrate for 5 seconds you would call Vibrate.vibrate(5000). It's as simple as that! If you want to call the vibrate directly (through the mojo/luna sys mgr) you can look inside the Vibrate.vibrate function declaration for the method to call to initiate it directly through crotest. |
|
|
06/17/2009, 06:14 PM
|
#1048 (permalink) |
|
Member
Join Date: Jul 2005
Location: Berkeley, CA
Posts: 53
Thanks: 12
Thanked 64 Times in 13 Posts
|
Sorry guys, I can't upload the jar file as it contains copyrighted Palm code. If we start doing that around here, we may get shut down. I definitely don't want to cause this forum any trouble; it's an amazing resource! Besides, it's 200 megs!
Yes, mine died somewhere after 60%, but when I rebooted the phone all was well. Once you enable WiFi, make sure the phone is indeed getting connected and can "see" the internet. Look at the IP address in the WiFi control panel and see if you can ping it from another computer on your network. If it has internet access it should activate! Just go back to the profile creation screen and follow the prompts for creating a new profile. Keep us posted! |
|
|
| Thanked By: |
06/17/2009, 06:17 PM
|
#1049 (permalink) | |
|
Tazmorator
![]() ![]() ![]() ![]() ![]() Join Date: Dec 2005
Location: Treo|Central when the light below is green. Otherwise; I could be just about anywhere.
Posts: 6,646
Thanks: 836
Thanked 529 Times in 413 Posts
|
Thanks 3l33t33n,
Quote:
__________________
Gsm Treo Pro - Prolly for a long while. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Berd |
|
|
|
06/17/2009, 06:18 PM
|
#1050 (permalink) |
|
Member
Join Date: Jul 2005
Location: Berkeley, CA
Posts: 53
Thanks: 12
Thanked 64 Times in 13 Posts
|
I created a mod so I can turn off the cellular radio, but keep WiFi and Bluetooth on. There is no current way to do this, only the "Airplane Mode" which shuts off ALL radios!
I currently do not have Sprint service on my Pre, and am just using it with WiFi. This would also be useful for people wanting to save their battery if in a poor or no service area and wish to still use wifi. Another use is shutting off the phone so calls will not be received. I posted the howto in the wiki: pre dev wiki: Radio Power Switch |
|
|
06/17/2009, 07:11 PM
|
#1052 (permalink) | |
|
Member
Join Date: Jul 2005
Location: Berkeley, CA
Posts: 53
Thanks: 12
Thanked 64 Times in 13 Posts
|
Quote:
Code:
this.serviceRequest = new Mojo.Service.Request("palm://com.palm.vibrate", {
method: 'vibrate', parameters: { 'period': 0,'duration': 250 }
});
You can use this to also make pulsed vibrates, setting period to 250 and duration to 2000 will make 4 short vibrates over a 2 second span. The Period param is a "no vibrate" period, so setting it to zero makes it continuous. Duration is the length of the cycle. The crotest is some kind of a test mode I think, and not intended for normal use (so it may break in the future). Last edited by pEEf; 06/17/2009 at 07:13 PM. Reason: typos |
|
|
|
06/17/2009, 07:16 PM
|
#1053 (permalink) | |
|
Member
Join Date: Jul 2005
Location: Berkeley, CA
Posts: 53
Thanks: 12
Thanked 64 Times in 13 Posts
|
Quote:
So my work isn't invalidated after all! =) |
|
|
|
06/17/2009, 07:34 PM
|
#1054 (permalink) |
|
Member
Join Date: Jul 2005
Location: Berkeley, CA
Posts: 53
Thanks: 12
Thanked 64 Times in 13 Posts
|
One thing that seems to be missing is any kind of feedback from the touchscreen. It would be cool to make the speaker "thock" and/or maybe the vibrator jump momentarily upon each valid touch. That would make it more intuitive.
Come to think of it, maybe even the keyboard could benefit as well. Of course, we could make it selectable so it can be enabled only if desired. I have no clue (as yet) where the touchscreen is processed, but it's likely in a binary somewhere. But I bet Palm has included an event trigger somewhere in there. Anyone have any ideas? |
|
|
06/17/2009, 07:42 PM
|
#1055 (permalink) | |
|
Member
Join Date: Jun 2009
Location: Minneapolis, MN
Posts: 57
Thanks: 5
Thanked 7 Times in 6 Posts
|
Quote:
|
|
|
|
06/17/2009, 07:43 PM
|
#1056 (permalink) | |
|
Member
Join Date: Jun 2009
Posts: 14
Thanks: 3
Thanked 9 Times in 4 Posts
|
Quote:
Code:
vibratorTurnOn: function(aPeriod, aDuration){
var request = new Mojo.Service.Request("palm://com.palm.vibrate", {
method: 'vibrate',
parameters: {
'period': aPeriod,
'duration': aDuration
},
onSuccess: function() {
QDLogger.log("Successfully initialized vibrator");
},
onFailure: function() {
QDLogger.log("Error initializing vibrator");
}
});
return request;
}
|
|
|
|
06/17/2009, 08:10 PM
|
#1057 (permalink) |
|
Member
Join Date: Jun 2009
Posts: 14
Thanks: 0
Thanked 2 Times in 1 Post
|
I did just test, and the code that was previously posted to get 3 vibrates actually will make the notification sound play 3 times. This happens if you are still on the messaging card for the person whose message is incoming and the screen has not timed out (gone black).
|
|
|
06/17/2009, 08:40 PM
|
#1058 (permalink) | |
|
Member
Join Date: Jun 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
Quote:
Try this in /usr/palm/applications/com.palm.app/messaging/app/controllers/notification-assistant.js insert Code:
//not sure if TelephonyCommands is available to all apps?
//will just create local in case
var myTelephonyCommands = {
vibratorTurnOn: function(){
var request = new Mojo.Service.Request("palm://com.palm.vibrate", {
method: 'vibrate',
parameters: {
'period': 125,
'duration': 500
},
onSuccess: function() {},
onFailure: function() {}
});
return request;
}
}
setTimeout(function(){ myTelephonyCommands.vibratorTurnOn(); }, 1000);
setTimeout(function(){ myTelephonyCommands.vibratorTurnOn(); }, 2000);
Code:
this.controller.showBanner(bannerParams,bannerLaunchParams,'chat'); |
|
|
|
06/17/2009, 08:48 PM
|
#1059 (permalink) |
|
Member
Join Date: Jun 2009
Posts: 14
Thanks: 0
Thanked 2 Times in 1 Post
|
Ok, so
Code:
this.serviceRequest = new Mojo.Service.Request("palm://com.palm.vibrate", {
method: 'vibrate', parameters: { 'period': 0,'duration': 250 }
});
I inserted into the function Code:
if (notificationData.keys().length > 0 && this.Messaging.messagingPrefs.enableNotification) {
Code:
var notificationType = notificationData.get('notificationType');
|
|
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT -4. The time now is 04:18 PM.












Linear Mode









