intent icon indicating copy to clipboard operation
intent copied to clipboard

adding contact with paramters like name,title etc..

Open kw2019ltd opened this issue 5 years ago • 3 comments

hi its possible to add contact with extra data and how its being done any exmaple

kw2019ltd avatar May 01 '20 11:05 kw2019ltd

Hello @kw2019ltd , you can check this usage example for putting new contact into contact database on Android.

You can add more extras ( using putExtra() method ).

itzmeanjan avatar May 12 '20 03:05 itzmeanjan

not working only tel is populated.

pls add complete example how to add contact with extra param like firstname last name etc

below not wokring

inal intent = intentImpl.Intent()
          ..setAction('com.android.contacts.action.SHOW_OR_CREATE_CONTACT')
          ..setData(
            Uri(
              scheme: 'tel',
              path: qrCodeDetails['number'],
            ),
          )
          ..putExtra('firstname', 'watted')
          ..putExtra('title', 'mr');

kw2019ltd avatar May 13 '20 18:05 kw2019ltd

hi any update

kw2019ltd avatar May 20 '20 20:05 kw2019ltd