get ownerinfo in android settings programatically -
is there way devicename ownerinfo under secure settings of android. found way
string devicename = settings.secure.getstring(getactivity().getcontentresolver(), settings.secure.lock_pattern_owner_info);
but in devlopers site there no such constant available. deprecated? have googled not find appropriate answer.
i using android 4.1 version
use
string ownerinfo = settings.secure.getstring(getcontentresolver(), "lock_screen_owner_info");
make sure catch settingnotfoundexception
Comments
Post a Comment