Aymen1322 Posted January 20, 2013 Share Posted January 20, 2013 Bonjour, en créant ma premiére Android app, ce message d'erreur est apparu :/ c'est quoi la solution SVP Merci. Code de l'application: package com.example.helloworld; import com.example.helloworld.R; import android.os.Bundle; import android.app.Activity; import android.view.View; import android.view.View.onclickListener; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final EditText NameField = (EditText) findViewById(R.id.NameField); final TextView TextView = (EditText) findViewById(R.id.TestView); Button Button = (Button) findViewById(R.id.Button); Button.setonclickListener(new onclickListener() { public void onclick(View arg0) { TextView.setText("Bonjour M." + NameField.getText()); } }); } } Quote Link to comment Share on other sites More sharing options...
g123k Posted January 21, 2013 Share Posted January 21, 2013 Bonjour, Pour visionner d'où vient l'erreur, il faut regarder le logcat. Deux possibilités : * directement dans ton IDE. Sur Eclipse ca donne : * en ligne de commande Aller dans le répertoire platform-tools du SDK et lancer un "adb logcat" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.