comment je peux gérer plusieurs getextras sans une même activité .J'ai pensé à faire un switch mais j'ai pas eu une solution sur quoi je vais faire le switch
voici les différentes getextras que je veux gérer :
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
24
25
26
27
28
29
30
31
32
33
 
  @Override
    public void onCreate(Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState);
    	setContentView(R.layout.accbase);
    	Bundle extras = getIntent().getExtras();
    	if (extras != null) {
    		switch(){
    		case 
    		Intent thisIntent = getIntent();
    		pass1 = thisIntent.getExtras().getString("password");
    		t=(TextView)this.findViewById(R.id.intent);
    		t.setText(pass1);
    		case
    		Intent thisIntent1 = getIntent();
    		pass2 = thisIntent1.getExtras().getString("password2");
    		t=(TextView)this.findViewById(R.id.intent);
    		t.setText(pass2);
    		case
    		Intent thisIntent2 = getIntent();
    		pass3 = thisIntent2.getExtras().getString("password3");
    		t=(TextView)this.findViewById(R.id.intent);
    		t.setText(pass3);
    		case
    		Intent thisIntent3 = getIntent();
    		pass4 = thisIntent3.getExtras().getString("password4");
    		t=(TextView)this.findViewById(R.id.intent);
    		t.setText(pass4);
 
 
 
    	}    
    }