Best way to get user-defined custom name for an Android device -


what best way user-defined custom name of android device?

some phones treat both device name , bluetooth name same. in these cases bluetooth name. in phones there setting called owner info, under security->settings. how can read name that? or there else suggest scenario? understand i'm not asking profile name people app or model / manufacturer of phone.

i have posted this answer before:

use

string ownerinfo = settings.secure.getstring(getcontentresolver(),         "lock_screen_owner_info"); 

make sure catch settingnotfoundexception

update

as of android 4.4.2 owner info value moved lock screen database,/data/system/locksettings.db, 3rd-party apps have no read/write access. that's, there no reliable way of reading owner info later android versions.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -