You may not be able to determine when a unit is in the cradle for all models. sysExternalConnectorAttachEvent definitely won't work for units without the universal connector and battery info will only work for units with rechargeable batteries. The only thing I can think of for older units, is to try opening the serial port and sniffing for Hotsync before launching HS. I first thought of trying this several years ago by looking a some of the control lines but never got around to testing. If Hotsync is active and the unit is in the cradle, some of the RS232 control lines are active. It may not work with USB cradles. Anyway, its just a thought in one direction.
----- Original Message ----- From: "Scott P" <[EMAIL PROTECTED]> Newsgroups: palm-dev-forum To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Friday, May 31, 2002 10:07 AM Subject: Re: Sensing Cradle > What I'm really looking for is away of doing a behind-the-scenes hotsync. > I've got the code all set up to fire of a hotsync every 30 mins (or whenever > the user decides) and then return to my application, however I can imagine > this will be a bit annoying if the pda is in your hand rather than connected > to the cradle and ready to sync. So I want to do a quick test first to see > if it's in the cradle (I think also being able to test that the hotsync will > succeed is pushing it at the moment). > > Do you know if you get sysExternalConnectorAttachEvent even if the palm is > switched on while in the cradle...? > > Cheers, Scott > > "Scott P" <[EMAIL PROTECTED]> wrote in message > news:87698@palm-dev-forum... > > > > 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... > > > > Cheers, Scott > > > > > > > > > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
