Many posts I read state that the Activity should be an inner class of the DeviceAdminReceiver, but I can't understand why this should be the case.
The android documentation doesn't make such a statement either, though their sample is like that.
Is this an actual requirement ? If so, does this mean that it cannot be invoked using a service ?