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()); } }); } } Link to comment Share on other sites More sharing options...
CastleRoad Posted January 20, 2013 Share Posted January 20, 2013 Bonsoir, Cette section est dédiée aux présentations d'applis. Pour ce qui est du developpement c'est par ici : https://forum.frandroid.com/forum/7-developpement/ Merci donc de bien vouloir y créer un nouveau sujet. Merci :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.