문제

When my app wants to add a new contact to the device's address book, I'd like a dialog to pop up that asks the user whether the app can add "Some Contact" to their address book, and I'd like that whole process to be facilitated by the OS. That is, I don't want to add a permission to WRITE_CONTACTS. How do I request Android to attempt to add a contact to the address book without having to add that permission to my manifest?

도움이 되었습니까?

해결책

You can't. If you don't add the WRITE_CONTACTS permission, your app can't write to the contacts.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top