My application needs the user's display name. In System Settings, under the Users section, I can see my name. That would be fine for my app. How can I get that or a similar string?
Several suggestions to how to do this I found on Stack Overflow did not work for me.
AccountManager
returns only the email address, which I don't need.ContactsContract.Contacts
contains only other people data.ContactsContract.Profile
seems to be empty.ContactsContract.Data
doesn't containt that name I need.- I wouldn't use oAuth or such login services. My app doesn't need account management, it just needs a name of the phone owner.