In article <87698@palm-dev-forum>, [EMAIL PROTECTED] says... > > Is it possible to tell that the palm is in the cradle (and connected to a > computer) ..? I know there's the 'charging' value from SysBatteryInfo(), but > I'd prefer to just be able to sense that a Palm was in the cradle. For > example, how about one running off batteries? Searched the docs and the > knowledge base and nothing obvious is showing up, any ideas...
On Palm OS 4 devices, there is a system notification for which your app can register, called sysExternalConnectorAttachEvent. On devices with Palm's universal connector, this is supposed to be sent when anything gets connected, including the cradle. Note: the cradle isn't used for recharging everywhere, so checking the battery state isn't totally useful. -- Ben Combee <[EMAIL PROTECTED]> CodeWarrior for Palm OS technical lead Get help at http://palmoswerks.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
