Daten aus der Kontakte-App in Android holen

Startseite Foren Deutsches LiveCode-Forum Daten aus der Kontakte-App in Android holen

Schlagwörter: ,

Ansicht von 1 Antwort-Thema
  • Autor
    Beiträge
    • #4426
      Rainer
      Teilnehmer

        Hallo,

        ich versuche mit der Funktion mobileGetContactData die Adresse (Straße und Wohnort) einer Person aus der Kontakte-App meines Android-Smartphones zu holen. Im Dictionary werden nur diese Schlüssel aufgeführt:

        „firstname“: The first name.
        „middlename“: The middle name.
        „lastname“: The last name.
        „alternatename“: The alternative name.
        „nickname“: The nick name (iOS only).
        „firstnamephonetic“: The phonetic transcription of the first name.
        „middlenamephonetic“: The phonetic transcription of the middle name.
        „lastnamephonetic“: The phonetic transcription of the last name.
        „prefix“: The name prefix.
        „suffix“: The name suffix.
        „organization“: The name of the organization.
        „jobtitle“: The job title (iOS only).
        „department“: The name of the department (iOS only).
        „message“: A person message (iOS only).
        „note“: A person note.

        Wo finde ich die Straße und den Wohnort?
        Mein Code:

        on mouseup
           mobilePickContact
           put the result into tContactID
           put mobilegetcontactdata (tContactID) into tContactData
           put tContactData ["lastname"] into Field FStrecke
           put tContactData ["address"]["city"] after field FStrecke
        end mouseup

        „lastname“ funktioniert. „adress“ oder „city“ (und ich hab schon anderes ausprobiert) ergibt kein Ergebnis.
        Kann mir jemand helfen?

      • #4445
        Rainer
        Teilnehmer

          Ich hab doch noch was gefunden:

          Mobile Specific Engine Features


          Leider kriege ich aber den Wohnort (Stadt) nicht angezeigt.
          Unter „city“ kommt die Postleitzahl.
          Unter „zip“ kommt nix.

          Hat jemand ne Lösung?

          Gruß Rainer

      Ansicht von 1 Antwort-Thema
      • Du musst angemeldet sein, um auf dieses Thema antworten zu können.