Back to project page LotR_Risk.
The source code is released under:
GNU General Public License
If you think the Android project LotR_Risk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.net; /*from w ww .j a v a 2 s. co m*/ import android.content.Context; import android.os.AsyncTask; import android.widget.Toast; public class TacheConnexion extends AsyncTask<String, Void, DonneesConnexion> { private Context context; public TacheConnexion(Context context) { this.context = context; } @Override protected DonneesConnexion doInBackground(String... params) { String servAddr = params[0]; Integer port = Integer.parseInt(params[1]); DonneesConnexion connexion = new DonneesConnexion(servAddr, port); return (connexion); } @Override protected void onPostExecute(DonneesConnexion result) { if (result.get_Connexion_Reussi()) Toast.makeText(this.context, "Connexion OK", Toast.LENGTH_SHORT).show(); else Toast.makeText(this.context, "Connexion FAILED", Toast.LENGTH_SHORT).show(); } }