Page 53 of 57 FirstFirst ... 34348495051525354555657 LastLast
Results 1,041 to 1,060 of 1128
  1. #1041  
    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.
  2. #1042  
    Quote Originally Posted by pyrognome View Post
    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.
    That code doesn't make it vibrate. I guess I wasn't clear enough before but, according to the comments, that code only checks that the 'play sound only' setting is set and that you're already in the chat/messaging app, and then will play one sound right away, another sound at 1 second and another at 2 second.

    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.
  3. #1043  
    I still can't believe one of the busiest topics in this forum has such a stupid subject line.
  4. #1044  
    Quote Originally Posted by Gidimba View Post
    Hi,
    I did it through root and it realy did go smooth.
    Packed everything like mentioned with the md5 on the two files etc.
    but when flashing the device again it got stuck on 84%.

    I reflashed with original ROM and it was successfull bit still in activation mode
    HI,

    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 03:10 PM.
  5. gidimba's Avatar
    Posts
    30 Posts
    Global Posts
    31 Global Posts
    #1045  
    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?
  6. #1046  
    Quote Originally Posted by Gidimba View Post
    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?
    Gidi,

    Can you please upload your rom file to any server (e.g. Yousendit.com)

    Thanks,
    Nadavi
  7. #1047  
    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.jsjsjs&$quot$; $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.
  8. #1048  
    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!
  9. #1049  
    Thanks 3l33t33n,

    Quote Originally Posted by 3l33t33n View Post
    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.jsjsjs&$quot$; $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.
    Just call me Berd.
  10. #1050  
    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
  11. jjlucsy's Avatar
    Posts
    51 Posts
    Global Posts
    56 Global Posts
    #1051  
    Quote Originally Posted by pEEf View Post
    the "Airplane Mode" which shuts off ALL radios!
    Actually, once in Airplane mode you can switch WiFi or Bluetooth back on individually. I would suspect it leaves the celluar radio off.
  12. #1052  
    Quote Originally Posted by 3l33t33n View Post
    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.jsjsjs&$quot$; $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.
    I think this is a better way to do it:

    Code:
            this.serviceRequest = new Mojo.Service.Request("palm://com.palm.vibrate", {
                method: 'vibrate', parameters: { 'period': 0,'duration': 250 }
            });
    This produces one quarter-second vibrate. (250ms)

    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 05:13 PM. Reason: typos
  13. #1053  
    Quote Originally Posted by jjlucsy View Post
    Actually, once in Airplane mode you can switch WiFi or Bluetooth back on individually. I would suspect it leaves the celluar radio off.
    LOL! I didn't know that! Still, this method is "prettier" and simpler. Airplane mode puts an annoying "Airplane Mode" and the symbol at the top of the screen, and each time, you'd have to re-enable BT & Wifi.

    So my work isn't invalidated after all! =)
  14. #1054  
    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?
  15. #1055  
    Quote Originally Posted by pEEf View Post
    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?
    YES! That would be awesome. In my last firmware flash on the HTC Touch, the ROM included a program that made the phone vibrate every so slightly with each touch. Made using the phone feel a lot more precise cuz you KNOW your touch triggered.
  16. #1056  
    Quote Originally Posted by pEEf View Post
    I think this is a better way to do it:

    Code:
            this.serviceRequest = new Mojo.Service.Request("palm://com.palm.vibrate", {
                method: 'vibrate', parameters: { 'period': 0,'duration': 250 }
            });
    This produces one quarter-second vibrate. (250ms)

    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).
    I agree, I got looking at some more code examples and have constructed a function to craft a custom vibrate, you can define the period aswell as the duration as function arguments, just call the function with the necessary values and you're good to go!

    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;
    }
    pEEf, thanks for the suggestion, I had a suspicion that crotest is/will be unreliable for applications but for testing purposes I figured it would do fine.
  17. #1057  
    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).
  18. #1058  
    Quote Originally Posted by websterguy View 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).
    Which code to get 3 vibrates?

    Try this in /usr/palm/applications/com.palm.app/messaging/app/controllers/notification-assistant.jsjsjs
    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);
    starting at line 179 (under the following line):
    Code:
    this.controller.showBanner(bannerParams,bannerLaunchParams,'chat');
    which will add two more vibrations when you get the new message notification, if the com.palm.vibrate request does indeed work to vibrate.
  19. #1059  
    Ok, so

    Code:
    this.serviceRequest = new Mojo.Service.Request("palm://com.palm.vibrate", {
                method: 'vibrate', parameters: { 'period': 0,'duration': 250 }
            });
    seems to work!

    I inserted into the function

    Code:
    	if (notificationData.keys().length > 0 && this.Messaging.messagingPrefs.enableNotification) {
    first thing, before

    Code:
    var notificationType = notificationData.get('notificationType');
    Set the duration to 1500, and now my phone vibrates for 1.5 seconds when I get a txt. Not a very strong vibrate, but it works.
  20. #1060  
    cstuart, I meant Scott's original code many many pages back that someone updated to bind.

Posting Permissions