bonjour
je souhaite votre aide
je veux récupère le contenu de radiobouton
j'ai essaye de mettre dans une collection mais ca marche pas
a la fin il affiche {} (Toast.makeText(essayeqcm.this,mp.toString(), Toast.LENGTH_SHORT).show()

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
 
        rb1.setOnClickListener(new RadioGroup.OnClickListener() {
          public void onClick(View v){
                	  mp.put(count, quest.getText());
          }
        });
 
        rb2.setOnClickListener(new RadioGroup.OnClickListener() {
          public void onClick(View v){
        	        	  mp.put(count, quest.getText());
          }
        });
 
        rb3.setOnClickListener(new RadioGroup.OnClickListener() {
          public void onClick(View v){
        	        	  mp.put(count, quest.getText());
          }
        });
        Toast.makeText(essayeqcm.this,mp.toString(), Toast.LENGTH_SHORT).show();
 
 
    }