Bonjour,
J'avance doucement ....
Me voilà face à 2 messages que je ne sais pas par quel bout prendre :

pid TID Appli TAG TEXT
1210 1210 com.android.random KeyCharacterMap: No keyboard for id 0


1210 1210 com.android.random KeyCharacterMap: Using default keymap: /system/usr/keychars/qwerty.kcm.bin

Si quelqu'un peut m'expliquer, j'en serai ravi.

A tout hasard voilà le code de l'appli

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
34
35
36
37
38
 
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
 
public class MainActivity extends Activity {
 
	@Override	
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);		
 
		 final TextView textOne = (TextView) findViewById(R.id.textView1);
		Button PressMe = (Button) findViewById(R.id.button1);			
 
		 final String[] myNames = {"Coq", "Canard", "Lapin", "Chien", "Chat", "Cheval", "Ane", "Cerf", "Bison" };		
		 final int rando = (int) (Math.random() * 9) ;
 
	PressMe.setOnClickListener(new View.OnClickListener() {		
 
			@Override	
	public void onClick(View v) {
				// TODO Auto-generated method stub				
			textOne.setText(myNames[rando]);			
 
 
		Intent i = new Intent(MainActivity.this, Question.class);
		String nextInt = myNames[rando];		
 
					i.putExtra("random", nextInt); //on en fait un extra
			startActivity(i);
 
			}
	});
	} }
Code de la 2eme partie (2eme activity :
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
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
 
public class Question extends Activity{
		@Override
				public void onCreate(Bundle savedInstanceState) {
	    	super.onCreate(savedInstanceState); 
	 	setContentView(R.layout.question);		 
 
 
 
	   	Bundle donnee = getIntent().getExtras();
 
	   	TextView textOne = (TextView) findViewById(R.id.selection); 	
	  	String myNames = getIntent.getStringExtra("random");  
 
	textOne.setText(""+donnee.getInt("textOne"));   	
 
		}
 
}
Merci à vous