Reputation: 1412
I have a web service which returns the HTML
code (source) as response. How can I render the response in the Cordova App on Android platform? The response is from a payment gateway transaction web service request.
Upvotes: 0
Views: 38
Reputation: 1683
You can either save the results as HTML or use the URL and then the "Webview" object to show your results. See the tutorials here:
Put your response here: cwv.loadUrl(Config.getStartUrl());
An example is here: https://github.com/apache/cordova-android/blob/master/framework/src/org/apache/cordova/CordovaWebView.java
Upvotes: 1