Aller au contenu
View in the app

A better way to browse. Learn more.

Forum de Frandroid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

communication entre android et base de donnée

Featured Replies

Posté(e)

bonsoir , je suis en train de développer un application android permet aux étudiants de voir son note . je doit faire la communication avec la base de donnée . si onclick sur le bouton note il faut voir un tableau du note 

on base de donnée le table notation : idnotation, cin , nom, prenom, titremat, note_ds,note_tp, note_orale, note_examen

 

 

//action de bouton Note

Note.setOnClickListener(new OnClickListener() {
@@override
public void onClick(View v) {
private static final String TABLE_NAME = "notation";
public static final String KEY_ID_note="idnotation";
public static final String KEY_cin="Cin";
public static final String KEY_NOM="Nom";
public static final String KEY_prenom="Prenom";
public static final String KEY_titremat="Titremat";
public static final String KEY_note_ds="Note_ds";
public static final String KEY_note_tp="Note_tp";
public static final String KEY_note_orale="Note_orale";
public static final String KEY_note_examen="Note_examen";
public static final String CREATE_TABLE_ANIMAL = "CREATE TABLE "+TABLE_NAME+
" (" +
" "+KEY_ID_note+" INTEGER primary key," +
" "+KEY_cin+"varchar"+
" "+KEY_NOM+" TEXT" +
" "+KEY_prenom+"varchar"+
" "+KEY_titremat+"varchar"+
" "+KEY_note_ds+"TEXT"+
" "+KEY_note_tp+"TEXT"+
" "+KEY_note_orale+"TEXT"+
" "+KEY_note_examen+"TEXT"+
");";
private MySQLite maBaseSQLite;
private SQLiteDatabase db;}

// Constructeur
public notationManager(Context context)
{
maBaseSQLite = new MySQLite(context);
}

public void open()
{
//on ouvre la table en lecture
db = maBaseSQLite.gettableDatabase();
}

public void close()
{
//on ferme l'accès à la BD
db.close();
};)
}

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Account

Navigation

Rechercher

Rechercher

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.