What is the best way to send array of data from native code (java) to the javascript code (phonegap)?
I'm calling script from DroidGap class.
public class MyClass extends DroidGap
Inside MyClass I am calling:
MyClass.this.sendJavascript("javascript: app.basic('" + js + "'); ");
Variable js is variable, where I put all the data like "4,5,6,23,123" etc.
Problem:
It sends data to javascript normally, but the UI in javascript frozes for second.
Any ideas?