I tried adb command through java code, but it didn't work.
Tried this in ADB command - adb shell am start -S com.android.settings/.Settings\$DeviceAdminSettingsActivity, it works well while performing it through command prompt, but fails when we run through java code.