I was able to follow and complete the Device Administration Sample. I can successfully lock, wipe data and do other administrative tasks as well.
Case 1: The problem I noticed is that whenever I disable the device administrator (settings->security->choose device administrators) then restart the device, the device administrator is enabled again after restart.
Case 2: Eventhough after I installed my app and did not activate the device administrator through my app. The device administrator is still enabled after restart.
Is this a device administrator feature after restart? or limitation? What could be wrong? Need some help. Thanks