PDA

Ver la Versión Completa : problema con the process...has stopped...


shaoo
25/07/11, 21:31:16
hola, soy nuevo aqui (y programando con android) y como agradecimiento por la ayuda les traigo un problema http://www.androidsis.com/foro/images/smilies/smile.png

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!