Wrox Programmer Forums
|
BOOK: Professional Android 2 Application Development
This is the forum to discuss the Wrox book Professional Android 2 Application Development, 2nd Edition by Reto Meier; ISBN: 978-0-470-56552-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android 2 Application Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 3rd, 2010, 02:47 AM
Registered User
 
Join Date: Jul 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to handle SCREEN_OFF/_ON

Dear All,

I'm trying to write a program to handle the ACTION_SCREEN_OFF & ACTION_SCREEN_ON as mentioned in the Chapter-5 [Intnets, Boardcast Receivers, Adapter, and the Internet] in "Professional Android 2 Application Development" book.

Could someone please help me with explaining this with some small eample code, as it's very urgent for me.

I want to display an AlertDialog when the device is going to Sleep mode. So, I want to catch SCREEN_OFF event. I tried to create a <receiver> in Manifest file with "SCREEN_OFF" intent filter and implemented the creation of dialog code in onReceive() of that BroadcastReceiver class implementation.

What's wrong in this implementation and how do I need to do this??

Thanks in advance,

Kind Regards,
Durga





Similar Threads
Thread Thread Starter Forum Replies Last Post
Can i handle this thru CSS nivarp CSS Cascading Style Sheets 9 January 17th, 2008 03:03 AM
How to handle...? chawnu Pro PHP 1 December 8th, 2005 05:14 AM
Getting handle of the file in use baburman .NET Framework 2.0 0 October 16th, 2005 10:56 PM
How to handle this error Maxood Classic ASP Databases 2 June 27th, 2004 02:57 PM
Getting value contained by HANDLE panja_swarup C++ Programming 1 December 16th, 2003 10:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.