1
How to send Json to another Activity?
public class SolicitaDados extends AsyncTask<String, Void, String> {
@Override
protected String doInBackground(String... urls){
return Conexao.postDados(urls[0], parametros);
}
@Override
protected void onPostExecute(String resultado){
try {
JSONObject Dados_Geral = new JSONObject(resultado);
JSONArray arrayEmpr = Dados_Geral.getJSONArray("empresa");
JSONArray arrayEsta = Dados_Geral.getJSONArray("estado");
} catch (JSONException e) {
e.printStackTrace();
}
}
}
I have in Mainactivity 2 Jsonarray-> company and state, now I need to use company in Activity Company, and state in State Activity. How can I send these arrays?
Thanks for the help! I am beginner and am not understanding very well all the content of Java Android programming.
Perfect. Thank you very much!!!!
– Fabricio Chaves Jorhge