Re: UIBrightnessAdjust vs BrightnessFix

2009-05-01 Thread Dmitry Grinberg
You're allowed to bundle brightnessfix with your app, but be careful, as it has a very precisely-defined set of devices it works on, and exactly zero checks for not-being-that-device. (The current version - BrightnessFix.NG works on ALL palms with intel X-scale processors, and that is it) B

Re: UIBrightnessAdjust vs BrightnessFix

2009-05-01 Thread Lionscribe
Does any system event happen before the UI show? If so, you can trap it before SysHandleEvent, and then enque your event. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/

Re: UIBrightnessAdjust vs BrightnessFix

2009-04-30 Thread Luc Le Blanc
Lionscribe wrote: > So how about enqueing a custom event after calling the API? > Thus your event will be handled after the system screen shows. > You will be able to get the brightness when you get the custom > event. Brillant! But it doesn't work: I enqueue a custom event after calling UIBrigh

Re: UIBrightnessAdjust vs BrightnessFix

2009-04-30 Thread Lionscribe
So how about enqueing a custom event after calling the API? Thus your event will be handled after the system screen shows. You will be able to get the brightness when you get the custom event. Lionscribe -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http:

Re: UIBrightnessAdjust vs BrightnessFix

2009-04-29 Thread Dmitry Grinberg
brightnessfix is a native arm app/hack/etc, that among other things messes with memory mapping, hardware access, and palmos globals. it CANNOT be duplicated on the simulator. But you can replace it with your own app, that does nothing on the sim, for sim-based testing. Best Regards, Dmitry G

Re: UIBrightnessAdjust vs BrightnessFix

2009-04-29 Thread Luc Le Blanc
Ryan Rix wrote: > Also, on that note, why do you need to change the brightness in > simulator? Only so that all features can be tried and tested on Simulator. Convenient both for me and potential users. Nothing else. But if I'm to run Gremlins, I better prevent this from happening. Luc Le Bla

Re: UIBrightnessAdjust vs BrightnessFix

2009-04-29 Thread Ryan Rix
Also, on that note, why do you need to change the brightness in simulator? On Wed, Apr 29, 2009 at 3:42 PM, Ryan Rix wrote: > Probably not as I'm pretty sure BirghtnessFix is a nice little hack and the > sim doesn't really 'do' hacks of any sort. > > Plus, isn't it arm code? > > On Wed, Apr 29,

Re: UIBrightnessAdjust vs BrightnessFix

2009-04-29 Thread Ryan Rix
Probably not as I'm pretty sure BirghtnessFix is a nice little hack and the sim doesn't really 'do' hacks of any sort. Plus, isn't it arm code? On Wed, Apr 29, 2009 at 3:28 PM, Luc Le Blanc wrote: > In order to let users predetermine the screen auto-dimming level > they want, I tried calling th

UIBrightnessAdjust vs BrightnessFix

2009-04-29 Thread Luc Le Blanc
In order to let users predetermine the screen auto-dimming level they want, I tried calling the UIBrightnessAdjust API and then recover the new screen brightness with SysLCDBrightness, before restoring the original brightness. Oddly, the UIBrightnessAdjust API is asynchronous: it acts as if it enqu