2013-10-30 39 views
0

我想請求與Insert_OR_Edit聯繫的意圖操作,需要預先填寫一些字段示例郵政地址,我可以預先填寫組織字段但不能夠做同樣的事情與任何其他領域意圖在聯繫人中插入或編輯預填寫的地址字段

Reference link

需要插入「地址」字段親語法通過意向

+3

你將需要提供一些更多的信息,從這個社區獲得有益的幫助。例如:你有什麼嘗試?你卡在哪裏?什麼是或不是按預期工作? –

+0

很高興爲他添加細節,@ hot。希望你也給了他一些關於在未來提出更好的問題的指導。 – Shog9

回答

1

這裏是Contacts specific Intent fields

喜歡的東西次如果我正確理解你的問題,下面的e可能會幫助你嗎?

Intent.putExtra(ContactsContract.Intents.Insert.POSTAL, "address"); 
3
Intent intent = new Intent(ContactsContract.Intents.Insert.ACTION,ContactsContract.Contacts.CONTENT_URI); 
    intent.putExtra(ContactsContract.Intents.Insert.NAME, getName()); 
    intent.putExtra(ContactsContract.Intents.Insert.COMPANY, getCompany()); 
    intent.putExtra(ContactsContract.Intents.Insert.EMAIL, getEmail()); 
    intent.putExtra(ContactsContract.Intents.Insert.PHONE, getPhone()); 
    intent.putExtra(ContactsContract.Intents.Insert.POSTAL, getAddress()); 
    startActivity(intent); 

它將與預先填入您提供的資料中提到的字段。

Prefilled contact fields

相關問題