I use [[UIScreen mainScreen]setBrightness: ] (in sdk 5.0) to change the system background light in my app.
The following steps work with my app:
Act
When you tap the home button your application doesn't resign active but rather goes into "Background Mode" and has its own delegate method which you need to define:
- (void)applicationDidEnterBackground:(UIApplication *)application
Something like this (in addition to the applicationDidBecomeActive:
delegate method) should get the intended behavior:
- (void)applicationDidEnterBackground:(UIApplication *)application
{
sysBright = [[NSUserDefaults standardUserDefaults] floatForKey:@"sysBright"];
[[UIScreen mainScreen] setBrightness:sysBright];
}