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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -