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

Respuesta
 
Herramientas
  #1  
Viejo 25/07/11, 21:31:16
Array

[xs_avatar]
shaoo shaoo no está en línea
Usuario novato en la web
 
Fecha de registro: jul 2011
Mensajes: 2
Tu operador: Movistar

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!
Responder Con Cita


Respuesta

Estás aquí
Regresar   Portal | Indice > Todo sobre Android > Programación y Desarrollo para Android



Hora actual: 07:50:27 (GMT +1)



User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2026 DragonByte Technologies Ltd.

Contactar por correo / Contact by mail / 邮件联系 /