Click here to get back home

Problem with power notifications

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Problem with power notifications Vikky 06-04-2008
Get Chitika Premium
Posted by Vikky on June 4, 2008, 2:09 am
Please log in for more thread options
While trying to get Power notifications for Display OFF using
RequestPowerNotifications() API, it returns PowerBroadcast notification i.e.
POWER_BROADCAST structure, which in turn gives System power flag event
"POWER_STATE_ON".
I am able to receive POWER_STATE_ON notification after the specified time
which is set in "Settings->Power Management->Display Timeout"
This notification should ideally not arrive when Video file is played in
Windows Media Player according to Windows Mobile 6 SDK documentation. But,
even during video playback the POWER_STATE_ON event is received because of
which my application is getting effected.
The event when checked on a Pocket PC device, is received only after the
Video file has been played completely. Therefore, my application behaves
correctly in this case.
Now my question is, even though POWER_STATE_ON event is received even during
a video playback, the device does not act on it. Isn't this weird? Or is
there any workaround which allows the player to continue playing by
overriding this event on smartphone?


Similar ThreadsPosted
Regd power on/power off notification February 9, 2006, 7:05 am
"Bubble" notifications May 4, 2007, 3:56 am
Notifications on smartphone June 26, 2007, 6:40 am
Block or Edit Notifications January 15, 2007, 12:52 pm
Removing or hiding Notifications in WM6 September 4, 2007, 5:58 am
State and Notifications Broker Incomplete? February 20, 2006, 1:40 pm
Bluetooth Devices and System Notifications February 27, 2008, 2:09 pm
Trackbar/Slider: Get notifications and change background color? October 24, 2005, 12:49 pm
Can't receive PE_DATACHANGE notifications in home-screen plugin April 25, 2007, 6:36 pm
Power saving and Mobile 5.0 CF 2.0 July 13, 2005, 9:25 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap