I have a problem with app widgets on Android KitKat 4.4.2, which is the OS removes my background running service without restarting it, although it's in sticky mode.
Now I found a trick to use onTaskRemoved to restart my service in case of low memory conditions.
But the problem is now how to simulate low memory condition on my device, not on emulator?