question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Input.ChoiceSet stay blank in Android

See original GitHub issue

What platform is your issue or question related to?

  • Android compileSdkVersion 26 buildToolsVersion ‘26.0.0’

I use the library ‘io.adaptivecards:adaptivecards-android:1.0.4’ and DirectLine with API REST 3.0 to exchange with the bot azure. I receive a AdaptiveCard from the Bot on my tablet SQOOL (Android 5.0 API 21) and my answers stay blank/ invisible. I can select one and send the correct value of my choice.

screenshot_2018-09-14-14-47-47

I havn’t this issue with a Samsung SM T580(Android 7.0 API 24).

{  
   "activities":[  
      {  
         "type":"message",
         "id":"5KvhcJEBvUaEVU5vW0tO13|0000003",
         "timestamp":"2018-09-14T14:40:52.6853575Z",
         "localTimestamp":"2018-09-14T14:40:52.628+00:00",
         "channelId":"directline",
         "from":{  
            "id":"Jda-Bot-Jeanette",
            "name":"Jda-Bot-Jeanette"
         },
         "conversation":{  
            "id":"5KvhcJEBvUaEVU5vW0tO13"
         },
         "inputHint":"acceptingInput",
         "attachments":[  
            {  
               "contentType":"application/vnd.microsoft.card.adaptive",
               "content":{  
                  "type":"AdaptiveCard",
                  "version":"1.0",
                  "body":[  
                     {  
                        "type":"TextBlock",
                        "size":"large",
                        "weight":"bolder",
                        "text":"Voici les résultats",
                        "wrap":true
                     },
                     {  
                        "type":"Input.ChoiceSet",
                        "id":"code**_1_10234",
                        "style":"expanded",
                        "isMultiSelect":false,
                        "choices":[  
                           {  
                              "title":"Intervention technique en contrôle essai qualité en électricité et électronique",
                              "value":"H04"
                           },
                           {  
                              "title":"Études et développement informatique",
                              "value":"M05"
                           },
                           {  
                              "title":"Installation et maintenance télécoms et courants faibles",
                              "value":"I17"
                           },
                           {  
                              "title":"Intervention technique en formulation et analyse sensorielle",
                              "value":"H05"
                           }
                        ]
                     }
                  ],
                  "actions":[  
                     {  
                        "type":"Action.Submit",
                        "data":{  
                           "id":"code**_1_10234",
                           "min":null,
                           "max":null
                        },
                        "title":"Valider"
                     },
                     {  
                        "type":"Action.Submit",
                        "data":"autre",
                        "title":"Faire une nouvelle recherche"
                     }
                  ]
               }
            }
         ],
         "replyToId":"5KvhcJEBvUaEVU5vW0tO13|0000002"
      }
   ],
   "watermark":"3"
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
khouzamcommented, Sep 25, 2018

Hi @ThomasNeolink,

I’ve tried your card on our test app on 2 emulators with API 21 (5.0 Lollipop) and I can see the text without problem. This was both our release/1.0 branch and the current master branch. Would you be able to try our test app with your SQOOL device?

0reactions
paulcam206commented, Apr 24, 2019

@paulcam206 : Anything from our side that is still needed here for this one?

I only dropped in on the thread to acknowledge the build issue. It’s been resolved. As for the rest, I’ll let @almedina-ms comment, but my guess is that this should be closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Input.ChoiceSet auto complete · Issue #3924
I'd really rather keep things separate and not introduce a convention for parsing the dataSet property into its various components. 1
Read more >
Power Automate email using Adaptive card doesnt sh...
When i try to open the same email using Ios App i see a blank form when i open the email. Any clue...
Read more >
Input.ChoiceSet - Schema Explorer
Allows dynamic fetching of choices from the bot to be displayed as suggestions in the dropdown when the user types in the input...
Read more >
Set a Default Value for Any Screen Component That ...
Now you can set a default value using any flow resource. Use a record query, an action, or another component. Or manually select...
Read more >
Proper Adaptive Card Input.ChoiceSet Templating Structure
I'm reading the Adaptive Card schema for Input.ChoiceSet and I see that the card json "value": property can be set in the card...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found