I have a problem with the filling of a String array. Should I fill it using data taken from a database?
The process of data extraction works, as evidenced by the LogCat, so I think the problem is right in the filling.
Here is the Java code snippet.
for(int i=0; i<jArray.length();i++){
JSONObject json_data = jArray.getJSONObject(i);
result_string = json_data.getString("nome")+" "+json_data.getString("cognome")+
":presente "+json_data.getString("dettagli");
farmacisti[i] = jArray.getString(i);
}
When I check in LogCat what is in the string stringaFarmacisti, I get this:
[Ljava.lang.String; @ 4126d308
Can anyone tell me why?
May be you need to fill the array with result_string…