In order to generate the notifications i need to know about how to generate the low battery and low memory interrupts programmatically. Can any one please provide your sugge
Low memory can also be simulated using Background process limit under the device developer options.
Go to Settings > Developer options. Under the app section change the Background process limit to No background processes
Now your activity will be killed every time you switch to another app. Useful for testing state saving and state restoration.