Categories: Python | S60 | How To | Code Examples
This page was last modified 03:06, 29 March 2008.
How to check if the application is in background
From Forum Nokia Wiki
For some programs it may be useful to know whether they are running in the background or in the foreground. This is how to check the focus state of a program (using the standard PyS60 appuifw module):
import appuifw #A function that tells us the focus status of the application is defined def foc(status): if(status==1):print 'App is now in the foreground' else:print 'App is now in the background' #We assign the function to the focus item of the Application class in appuifw appuifw.app.focus=foc
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pausing an application | griffiths_mark | General Symbian C++ | 8 | 2003-08-29 08:22 |
| rwindow & active object | sunny_singh | General Symbian C++ | 0 | 2006-01-06 07:42 |
| Application is crashing at low battery | saajon | General Symbian C++ | 5 | 2008-05-05 10:54 |
| How to set phone background from another application | dave_tracey | General Symbian C++ | 1 | 2003-11-13 16:35 |
| Problems with battery | crazymofo | General Discussion | 4 | 2007-10-27 05:51 |
