0

In my app I have an array and I want to pass this array to a javascript script to display an html list. My app generate this array after reading information from JSON and I need to pass it to javascript. In iOS I used this function: stringByEvaluatingJavaScriptFromString. How I can do the same in Android?

1 Answer 1

1

Use Gson library. It is an amazing JSON parsing library that can parse and create JSON arrays.

https://code.google.com/p/google-gson/

So convert your array to JSON and send it over :)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.