I have a javascript function:
drawPath: function drawPathFn(nodeList){
console.log(""+nodeList[1]);
},
and the native java code that calls this function is:
List<String> nodes = getShortestPath(s, d);
architectView.callJavascript("World.drawPath('"+nodes+"')");
nodes list is filled with several location names but when I try to pass this list to the javascript function, the console output is just: "[" for console.log(""+nodeList[0]);
and "S" for console.log(""+nodeList[1]);
What I want is that when I call nodeList[0], I want it to print out e.g. "Building A". How could I achieve that?