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 ?
Ok, found the answer hidden in the source code of the sample application.
Is stated just above the inner class (the activity), which indicates that it does NOT have to be an inner class and what is recommended is for these two classes to be separated.