07-18-2008 05:04 PM
07-18-2008 05:42 PM
The ability to change the color of the trackball is actually based on hardware and software. There is an LED that was placed under the trackball in the earliest versions of the Pearl but was subsequently removed since no one was really using it except the phone application on the device. As such, it is likely that your device that doesn't support it in hardware.
07-18-2008 05:49 PM
I am pretty sure that my hardware does support it, because I have installed a commercial application which can change the trackball color on my pearl device.
Is it because that I built the application with a newer version of JDE (4.2.0.98), while my simulator is running on top of OS 4.2.0.61, and my pearl device is running on OS 4.2.0.42?
On the 8100 simulator, the LED status lights up, not hte trackball.
On the 8100 device,neither the LED status nor the trackball lights up.
Anything wrong with the java code itself?
Thanks.
07-20-2008 12:50 AM
07-21-2008 03:18 PM
Brian,
I tried your suggested solution on my pearl device. Here is the code snippet:
boolean ispc = LED.isPolychromatic(LED.LED_TYPE_TRACKBALL); if(ispc) { int[] pattern = { 0x000000FF, 1500, 50, 0x00000000, 5850, 50 }; LED.setColorPattern(LED.LED_TYPE_TRACKBALL, pattern, true); }
When testing the above code, the LED status lights up with blue color, but not the trackball, althrough I did use "LED_TYPE_TRACKBALL" type. My device is indeed capable change the trackball color, as I used such third-party program before.
It looks like I am still missing something in my code, am I?
07-21-2008 04:56 PM