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

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -