Skip to content Skip to sidebar Skip to footer

Get Ownerinfo In Android Settings Programatically

Is there a way to get devicename from ownerinfo under secure settings of android. I found this way String deviceName = Settings.Secure.getString(getActivity().getContentResolver(),

Solution 1:

Use

StringownerInfo= Settings.Secure.getString(getContentResolver(), "lock_screen_owner_info");

Make sure to catch SettingNotFoundException

Solution 2:

String deviceName = android.os.Build.MODEL;

Post a Comment for "Get Ownerinfo In Android Settings Programatically"