|
||
|
|
|
|||||||
| Programación y Desarrollo para Android Subforo exclusivo para temas de programación de software para PDAs y desarrollo de aplicaciones, interfaces, etc bajo Android |
![]() |
|
|
Herramientas |
|
#1
|
||||
|
||||
|
problema con the process...has stopped...
hola, soy nuevo aqui (y programando con android) y como agradecimiento por la ayuda les traigo un problema
![]() tengo este codigo que cuando ejecuto en el emulador de android me dice "the process.... has stopped unexpectdly please try again" package com.acme.heyyou; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends Activity{ /** Called when the activity is first created. * @override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button button=(Button)findViewById(R.id.hello); button.setOnClickListener(new View.OnClickListener() { public void onClick(View v){ EditText text = (EditText)findViewById(R.id.entry); String enteredName = text.getText().toString(); String salutation = getResources().getString(R.string.hello) + " " + enteredName; TextView out = (TextView)findViewById(R.id.out); out.setText(salutation); } }); } } les adjuntaria el log del logcat pero no se como exportarlo. alguien me puede ayudar, gracias! |
|
|
![]() |
Estás aquí
|
||||||
|
||||||