Power detection

RobVanBrunschot

Member
Licensed User
Longtime User
Hello,

Can anyone help me on how to detect in my program when the power is connected via USB in my car with 12V.
When connected to my computer I can check the registry for the 'cradled' value but when in my car it does not work.

I have searched the internet for a solution but found nothing.

I hop some one can hep me.

Rob
 

agraham

Expert
Licensed User
Longtime User

RobVanBrunschot

Member
Licensed User
Longtime User
agraham and eww245,

Thanks for your response.
I wil try both ways in my program and I wil get back with the results.

Greets, Rob

By the way, my device is a Sony Ericsson XPERIA with WM 6.1
 

RobVanBrunschot

Member
Licensed User
Longtime User
Hello,

It took some time but I now use the PowerNotify library in my program, it works fine.
So eww245, thank you for the help.

Greets, Rob
 
Top