willblaschko / AlexaAndroid

A library and sample app to abstract access to the Amazon Alexa service for Android applications.
GNU General Public License v2.0
280 stars 133 forks source link

JSON Response #148

Open tatasadi opened 6 years ago

tatasadi commented 6 years ago

Can I have the text response (JSON response) from Amazon in this library? I would like to show in UI a text, which come from the response of alexa. Anybody has an idea?

tatasadi commented 6 years ago

I don't find it. Is it a class? Can you give me the path to it? or is it a function? in which class?

chowdary60 commented 6 years ago

hello @Ehsanta83, @rohith-krish usually the AVS response will return the two directive which is Speak and RenderTemplate. RenderTemplate will have the necessary meta data to display in the cards. check this link https://developer.amazon.com/docs/alexa-voice-service/display-cards-overview.html#enable-display-cards. when I check the response, we are getting only "Speak " directive only, you can check the "hanelrespone(AvsResponse avsResponse) method in BaseActivity class.".

@rohith-krish where can we find the AvsSetRenderTemplateItem class.?

Thanks

jackdaniels92 commented 6 years ago

I have the same problem. I'd like to display cards as well.

rohithThammaiah commented 5 years ago

Has anyone found a workaround for this?