Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Determine whether charger plugged in or running on battery?

Determine whether charger plugged in or running on battery?

Put your problem here if it does not fit any of the other categories.

Determine whether charger plugged in or running on battery?

Postby Graham » Sun May 02, 2010 11:49 am

Hi,

Forgive me I'm sure this has been covered but I searched couldn't find anywhere.

I want my program to stop playing music when the charger is plugged in, and start playing again when plugged in again etc.

How do I do these two things:

1. Check weather running battery/charging?

2. Handle an event for when this is charging status changed (eg. charging started/charging stopped) within my program?
-- Graham
Graham
Freshman
Freshman
 
Posts: 7
Joined: Sun Mar 22, 2009 10:18 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 20 guests