How to connect to two url at the same time using android-query?
I want to connect multiple site at the same time. Just you need not use android-query.
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
AQuery aq = new AQuery(this);
AQuery aq2 = new Query(this);
aq.ajax("~~~", JSONObject.class, this, "Callback");
aq2.ajax("~~~", JSONObject.class, this, "Callback2");
}
public void Callback(String url, JSONObject json, AjaxStatus status)
{
~~~
}
public void Callback2(String url, JSONObject json, AjaxStatus status)
{
~~~
}
Aucun commentaire:
Enregistrer un commentaire