Results 1 to 6 of 6
  1.    #1  
    I realized that I posted this in the wrong place, but have been unable to get back to my computer all day. I have re-posted this in the development area. I'm sorry to the Admins and to those who were annoyed by this.

    I can't post links yet, but this is the Dev thread ID: 2056609



    M.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Hey!

    Like most, the tiny one buzz notification for SMS and E-Mail is not enough for me. I was thinking that I'd like to have those notifications trigger the same vibrate sequence as the phone app does on a phone call coming in.

    I'm going through the "incomingcall-assistant.jsjsjs&$quot$; $and$ $a$ $couple$ $others$ $in$ $that$ $same$ $dir$ (/$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/) $seeing$ $if$ $I$ $can$ $figure$ $out$ $where$ $the$ $phone$ $app$ $is$ $setting$/$calling$ $the$ $vibrate$ $sequence$ $so$ $I$ $maybe$ $hijack$ $that$ $or$ $cobble$ $that$ $into$ $the$ $SMS$ $and$/$or$ $mail$ $notification$ $js$ ($I$ $haven$'$t$ $gotten$ $that$ $far$ $yet$ $to$ $see$ $how$ $these$ $are$ $done$).

    Has anyone else been looking into this, or know of where the phone app is actually calling the vibrate sequence so this may be possible to hack into the SMS and mail one(s)? Having that one tiny vibe isn't enough for me. I am aware that there's a hack to lengthen the vibe time to one long vibe, but, I'm thinking this might be a bit more of an "elegant" solution (for myself, but I'm sure others would like it as well).


    Thanks for any help!

    M.
    Last edited by Xanadu73; 11/22/2009 at 08:32 PM.
  2. #2  
    Try this:

    Code:
    vibrate: function() {
    	this.controller.serviceRequest(
    		"palm://com.palm.vibrate", {
    			method: 'vibrate', parameters: {
    					'period': 0,'duration': 50
    			}
    		}
    	);
    },
    Note i took this from the calculator Enable Vibration patch.

    If you are interested i can add this to the notification repeat patches once you figure out the vibrate pattern you want.
  3.    #3  
    Wow! Thanks for dropping me this info! This is quite valuable!

    How would multiple vibrates get strung together into one "sequence"?

    Code:
    vibrate: function() {
    	this.controller.serviceRequest(
    		"palm://com.palm.vibrate", {
    			method: 'vibrate', parameters: {
    					'period': 0,'duration': 250
    			}
    
    			method: 'vibrate', parameters: {
    					'period': 0,'duration': 250
    			}
    
    			method: 'vibrate', parameters: {
    					'period': 0,'duration': 750
    			}
    
    		}
    	);
    },
    Like that? That would do two quick ones and a long one (buzz buzz buzzzzzzzz), if that's how a "sequence" would be cobbled together. That's a lot of why I was hoping to find where it's calling the phone buzz sequence to see how Palm writes that sort of thing.

    What does "period" mean in this context? The delay time for completing one event before it moves on to the next? Meaning a period of 250 would put a quarter second gap in between the buzzes?
  4. #4  
    Hi and sorry for my english ;-) I am from germany...
    Can someone explain me how I open this folder and file in Windows?
    Or is there a patch in Preware for 3 vibration at a SMS?

    Thank you
    Last edited by BlackUser; 09/14/2010 at 06:06 AM.
  5. #5  
    Ok, at my Pixi Plus in "/usr/palm/applications/com.palm.app.messaging/app/controllers/notification-assistant.jsjsjs&$quot$; $i$ $insert$ $after$ $line$ $288$
    Code:
    this.controller.showBanner(bannerParams, bannerLaunchParams, 'chat');
    and before
    Code:
    var data = {
            chatThreadId: chatThreadId,
            messageId: notificationData.messageId,
            messageType: notificationData.messageType,
            name: name,
            address: notificationData.address,
            message: message.escapeHTML(),
            mmsImage: mmsSummaryData.image
        };
    this code:
    Code:
    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);
    But the vibration does not change!

    You can help me??
  6. #6  
    And this code in line 158 for 1.5 seconds also does not work, after the reboot of the phone!
    Code:
    if (notificationData.keys().length > 0 && this.Messaging.messagingPrefs.enableNotification) {
    //BEGIN MODIFICATION
    this.serviceRequest = new Mojo.Service.Request("palm://com.palm.vibrate", {
    method: 'vibrate', parameters: { 'period': 0,'duration': 1500 }
    });
    //END MODIFICATION
    var notificationType = notificationData.get('notificationType');
    if (notificationType == this.Messaging.notificationTypes.newMessage) {
    Why?

    regards
    Last edited by BlackUser; 09/15/2010 at 11:13 AM.

Tags for this Thread

Posting Permissions