Please help with Jolla-Contacts

Hi,
at the old good times when I had nexus 4, I was using patch from MarkkyBoy to have Add Contact quick action in my top menu. I would like to revive this feature, but I have problem - I added it to top menu, but I cant find right remote-method to obtain in JSON file.

Method CreateContact is not working (according to contacts.qml file), I only achieved that people app opens, but not on New contact card for filling name, number etc…

Can someone tell me that “magic” word to make it working?

btw I have my json file like this:

{
“translation_catalog”: “lipstick-jolla-home”,
“entries”: [
{
“path”: “system_settings/look_and_feel/topmenu/actions/create_new_contact”,
“title”: “Create new contact”,
“translation_id”: “”,
“title_short”: “New Contact”,
“translation_id_short”: “”,
“type”: “action”,
“icon”: “image://theme/icon-m-contact”,
“order”: 61,
“params”: {
“type”: “grid”,
“requires-package”: “jolla-contacts”,
“remote-service”: “com.jolla.contacts.ui”,
“remote-path”: “/com/jolla/contacts/ui”,
“remote-interface”: “com.jolla.contacts.ui”,
“remote-method”: “openNewContactEditor()”
}
}
]
}

I tried many different remote-method, but most of them only opens people app and does nothing more.

Add new contact

{
    "translation_catalog": "lipstick-jolla-home",
    "entries": [
        {
            "path": "system_settings/look_and_feel/topmenu/actions/add_a_contact",
            "title": "Add a contact",
            "translation_id": "contacts_settings-la-add_contact",
            "title_short": "Add contact",
            "translation_id_short": "settings_quickaction-la-add_a_contact",
            "type": "action",
            "icon": "image://theme/icon-m-file-vcard",
            "order": 65,
            "params": {
                "type": "grid",
                "remote-service": "com.jolla.contacts.ui",
                "remote-path": "/com/jolla/contacts/ui",
                "remote-interface": "com.jolla.contacts.ui",
                "remote-method": "createContact",
                "remote-arguments": ["createContact"]
            }
        }
    ]
}

Show videos

{
    "translation_catalog": "lipstick-jolla-home",
    "entries": [
        {
            "path": "system_settings/look_and_feel/topmenu/actions/show_videos",
            "title": "Show videos",
            "translation_id": "contacts_settings-la-show_videos",
            "title_short": "Videos",
            "translation_id_short": "settings_quickaction-la-show_videos",
            "type": "action",
            "icon": "image://theme/icon-m-file-video",
            "order": 64,
            "params": {
                "type": "grid",
                "remote-service": "com.jolla.gallery",
                "remote-path": "/com/jolla/gallery/ui",
                "remote-interface": "com.jolla.gallery.ui",
                "remote-method": "showVideos"
            }
        }
    ]
}

Show screenshots

{
    "translation_catalog": "lipstick-jolla-home",
    "entries": [
        {
            "path": "system_settings/look_and_feel/topmenu/actions/take_a_screenshot",
            "title": "Show screenshots",
            "translation_id": "settings_quickaction-la-take_a_screenshot",
            "title_short": "Screenshots",
            "translation_id_short": "settings_quickaction-la-take_a_screenshot",
            "type": "action",
            "icon": "image://theme/icon-m-display",
            "order": 55,
            "params": {
                "type": "grid",
                "remote-service": "com.jolla.gallery",
                "remote-path": "/com/jolla/gallery/ui",
                "remote-interface": "com.jolla.gallery.ui",
                "remote-method": "showScreenshots"
            }
        }
    ]
}

Show photos


{
    "translation_catalog": "lipstick-jolla-home",
    "entries": [
        {
            "path": "system_settings/look_and_feel/topmenu/actions/show_photos",
            "title": "Show photos",
            "translation_id": "contacts_settings-la-show_photos",
            "title_short": "Photos",
            "translation_id_short": "settings_quickaction-la-show_photos",
            "type": "action",
            "icon": "image://theme/icon-m-file-image",
            "order": 63,
            "params": {
                "type": "grid",
                "remote-service": "com.jolla.gallery",
                "remote-path": "/com/jolla/gallery/ui",
                "remote-interface": "com.jolla.gallery.ui",
                "remote-method": "showPhotos"
            }
        }
    ]
}

1 Like

thanks :slight_smile: I will try :slight_smile:

nice, adding contact is working flawlessly <3 thanks a lot :slight_smile:

1 Like