Android Open Source - SuiviConsoFreeMobile Telechargeur Suivi Conso Detaille






From Project

Back to project page SuiviConsoFreeMobile.

License

The source code is released under:

Ce logiciel est dans le domaine public.

If you think the Android project SuiviConsoFreeMobile listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package net.yvesd.scfm;
/* w w  w.  j  a v  a  2 s  .  co m*/
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;

import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.protocol.BasicHttpContext;

public class TelechargeurSuiviConsoDetaille extends TelechargeurGenerique {

  private static final String URL_CIBLE = "https://mobile.free.fr/moncompte/ajax.php?page=consotel_current_month";

  public TelechargeurSuiviConsoDetaille(CanWaitForStream activity,
      DefaultHttpClient httpClient) {

    super(activity, httpClient);
  }

  @Override
  protected String getUrlCible() {
    return URL_CIBLE;
  }

  @Override
  protected String lectureDonnees(BasicHttpContext mHttpContext, String login)
      throws IOException, ClientProtocolException {

    HttpPost httpPost = new HttpPost(getUrlCible());

    List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
    nameValuePairs.add(new BasicNameValuePair("login", login));
    try {
      httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
    } catch (UnsupportedEncodingException e1) {
      publishProgress(new ProgressUpdate(R.string.log_erreur0400, 100));
      return null;
    }

    HttpResponse getResponse = httpClient.execute(httpPost, mHttpContext);

    String donneesLues = litDonnesDepuisHttpResponse(getResponse);

    return donneesLues;

  }

}




Java Source Code List

net.yvesd.scfm.AfficherSuiviconsoDetailleActivity.java
net.yvesd.scfm.CanWaitForStream.java
net.yvesd.scfm.DataInterpreter.java
net.yvesd.scfm.DataRecuperatorMock.java
net.yvesd.scfm.DataRecuperatorParams.java
net.yvesd.scfm.DonnesCompteur.java
net.yvesd.scfm.EditAccountActivity.java
net.yvesd.scfm.EditAccountsActivity.java
net.yvesd.scfm.ExtracteurErreur.java
net.yvesd.scfm.GestionIcones.java
net.yvesd.scfm.GestionnaireThemes.java
net.yvesd.scfm.MyHttpClient.java
net.yvesd.scfm.OptionActivity.java
net.yvesd.scfm.SuiviConsoFreeMobileActivity.java
net.yvesd.scfm.TelechargeurDonnesConso.java
net.yvesd.scfm.TelechargeurGenerique.java
net.yvesd.scfm.TelechargeurSuiviConsoDetaille.java