Jump to content

Connexion Application a OVH avec Mysql.


Recommended Posts

Bonsoir

 

je viens de m'inscrire dans le forum. et nouvau dans le domaine.

Je veux connecter mon application a mysql en local et mysql dans on compte OVH.

 

1- Est ce qu'il faut une librairie spécifique si oui laquelle?

j'ai deja mysql-connector-5.0.3.jar et mysql-connector-5.1.33-bin.jar.

 

voici mon code.

 

ici c'est pour afficher les informations de la base sur mon téléphone.

@@override
public View getView(int pPosition, View pConvertView, ViewGroup pParent) {

RelativeLayout tLayoutItem;
String IChemin = null;
Bitmap bm;

if(pConvertView == null){
tLayoutItem = (RelativeLayout) oInflater.inflate(R.layout.actualite_item_layout, pParent, false);
}else{
tLayoutItem = (RelativeLayout) pConvertView;
}

TextView txtTitre = (TextView) tLayoutItem.findViewById(R.id.txtTitre);
txtTitre.setText(this.listeActualites.get(pPosition).getoTitre().toString().trim());

TextView txtContenuActu = (TextView) tLayoutItem.findViewById(R.id.txtContenu);
txtContenuActu.setText(this.listeActualites.get(pPosition).getoContenu().toString().trim());

IChemin = "http://xxx.xxx.xxx.xxx/"+this.listeActualites.get(pPosition).getoChemin().toString().trim();
bm = downloadImage(IChemin);
oImage = (ImageView) tLayoutItem.findViewById(R.id.imgActu);
oImage.setImageBitmap(bm);
return tLayoutItem;
}

 

Merci d'avance de vos reponses.

 

Steph.

Edited by Bekale
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...