I am trying to implement an Approval Flow using Adaptive Cards and building an RESTful API in Java to use for Actions in Adaptive Cards.
I was able to validate the token from the Adaptive Card using this.
But in order for my API to send a Refresh Card as a response, i need to author and render the Adaptive Card.
There is an SDK for Android but not for specifically for Java.I have tried to work with adaptivecards-android-1.2.5 jar, but just unable to load the classes.
Is there any SDK for Java or any other way how we can utilize the Android SDK?
At the end of the day, although it sounds fancy, an "Adaptive Card" is actually just a JSON string. As a result, even without a good strongly-typed library, you can just create the raw JSON yourself to send, do your own string/token replacements, and send it to the end destination. Just as an example, have a look at this question and the 2nd option in my answer: Display number in adaptive card
As a further suggestion, once it's all working, perhaps you can contribute to a Java version of Adaptive Cards - it is an open source project, after all :-)