Convert String array to json in android -


i have problem. want pass string array javascript, impossible, want convert string array json , send java script. how can that?

just convert use jsonarray,

import java.util.arrays; import org.json.jsonarray; string[] inputs = new string[] {"foo", "bar"}; jsonarray jsonarray = new jsonarray(arrays.aslist(inputs)); 

Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -