Logcat dice – La aplicación puede estar haciendo demasiado trabajo en su hilo principal y mensaje de error dice – StringtoReal.invalidReal (string.boolean) línea: 63
Cada vez que ejecuto mi aplicación en el emulador, Logcat dice – La aplicación puede estar haciendo demasiado trabajo en su hilo principal y mensaje de error dice – StringtoReal.invalidReal (string.boolean) línea: 63 aquí, estoy tratando de agregar valores de 3 textviews Y mostrar su total en otro texto con la marca tick en checbox (es)
10-12 17:23:21.074: W/ActivityThread(700): Application com.suvendu.tutorial.cb is waiting for the debugger on port 8100... 10-12 17:23:21.134: I/System.out(700): Sending WAIT chunk 10-12 17:23:21.143: I/dalvikvm(700): Debugger is active 10-12 17:23:21.334: I/System.out(700): Debugger has connected 10-12 17:23:21.334: I/System.out(700): waiting for debugger to settle... 10-12 17:23:21.545: I/System.out(700): waiting for debugger to settle... 10-12 17:23:21.744: I/System.out(700): waiting for debugger to settle... 10-12 17:23:21.943: I/System.out(700): waiting for debugger to settle... 10-12 17:23:22.155: I/System.out(700): waiting for debugger to settle... 10-12 17:23:22.353: I/System.out(700): waiting for debugger to settle... 10-12 17:23:22.554: I/System.out(700): waiting for debugger to settle... 10-12 17:23:22.754: I/System.out(700): waiting for debugger to settle... 10-12 17:23:22.954: I/System.out(700): waiting for debugger to settle... 10-12 17:23:23.164: I/System.out(700): debugger has settled (1368) 10-12 17:23:25.243: I/Choreographer(700): Skipped 46 frames! The application may be doing too much work on its main thread. 10-12 17:23:25.533: D/gralloc_goldfish(700): Emulator without GPU emulation detected.
Codigo de Actividad: –
- Filtrar LogCat para obtener sólo los mensajes de Mi aplicación en Android?
- No se puede iniciar la aplicación para la intención de difusión
- Android Studio - ADB Error - "... dispositivo no autorizado. Comprueba el cuadro de diálogo de confirmación en tu dispositivo. "
- Cómo capturar la radio del módem Iniciar sesión en Android
- "El objeto real ha sido eliminado" en logcat
OnClickListener checkBoxListener; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); text_regular_code=(TextView)findViewById(R.id.text_regular); text_small_code=(TextView)findViewById(R.id.text_small); text_large_code=(TextView)findViewById(R.id.text_large); text_check_regular_code=(TextView)findViewById(R.id.text_check_regular); text_check_small_code=(TextView)findViewById(R.id.text_check_small); text_check_large_code=(TextView)findViewById(R.id.text_check_large); text_price_regular_code=(TextView)findViewById(R.id.text_price_regular); text_price_small_code=(TextView)findViewById(R.id.text_price_small); text_price_large_code=(TextView)findViewById(R.id.text_price_large); edit_qty_regular_code=(EditText)findViewById(R.id.edit_qty_regular); edit_qty_small_code=(EditText)findViewById(R.id.edit_qty_small); edit_qty_large_code=(EditText)findViewById(R.id.edit_qty_large); chk_regular_code=(CheckBox)findViewById(R.id.chk_regular); chk_small_code=(CheckBox)findViewById(R.id.chk_small); chk_large_code=(CheckBox)findViewById(R.id.chk_large); checkBoxListener =new OnClickListener() { public void onClick(View v) { if(chk_regular_code.isChecked()) { text_price_regular_code.setText (text_regular_code.getText().toString()); text_check_regular_code.setText (chk_regular_code.getText().toString()); } else { text_price_regular_code.setText(""); text_check_regular_code.setText(""); edit_qty_regular_code.setText(""); } if(chk_small_code.isChecked()) { text_price_small_code.setText (text_small_code.getText().toString()); text_check_small_code.setText (chk_small_code.getText().toString()); } else { text_price_small_code.setText(""); text_check_small_code.setText(""); edit_qty_small_code.setText(""); } if(chk_large_code.isChecked()) { text_price_large_code.setText (text_large_code.getText().toString()); text_check_large_code.setText (chk_large_code.getText().toString()); } else { text_price_large_code.setText(""); text_check_large_code.setText(""); edit_qty_large_code.setText(""); } // whenever i use below code getting error "start" x=Double.parseDouble (text_price_regular_code.getText().toString()); y=Double.parseDouble (text_price_small_code.getText().toString()); z=Double.parseDouble (text_price_large_code.getText().toString()); a=x+y+z; text_total_code.setText(Double.toString(a)); // whenever i use below code getting error "end" } }; chk_regular_code.setOnClickListener(checkBoxListener); chk_small_code.setOnClickListener(checkBoxListener); chk_large_code.setOnClickListener(checkBoxListener); }
- Android: hacer que la aplicación registre mis instrucciones de registro "sólo"
- ¿Qué significa "Añadir aleatoriedad: count = 383 entropía = 381"?
- Captura de imágenes desde galería y cámara en android
- Error INSTALL_FAILED_DEXOPT al intentar instalar la aplicación
- Eliminar hora, fecha y nombre del paquete de System.out.print en Android logcat
- Logcat error Index -1 solicitado, con un tamaño de 24
- Conceptos básicos sobre el uso de logcat en el desarrollo de Android
- Filtrar mensajes de registro por PID o paquete de aplicaciones en Android
Yo lo ignoraría. El mensaje que está viendo es importante en los teléfonos, pero no en el emulador. El emulador es extremadamente lento. Nada de lo que está haciendo es de uso intensivo de recursos para que su aplicación se realice nominalmente en un dispositivo.
En un dispositivo, puede utilizar las opciones de desarrollador, en algunos teléfonos, para activar una señal visible que puede estar haciendo demasiado trabajo en primer plano. En mi Galaxy Nexus puedo navegar a Ajustes> Opciones de Desarrollador> Modo Estricto habilitado. Comprobar que la caja hará que un borde rojo parpadee alrededor de cualquier aplicación cuando hace que un mensaje como lo que usted fijó de su logcat ocurra.
La solución para eliminar la advertencia es enhebrar, pero creo que puede estar dedicando esfuerzo a un problema no. La única manera de saber es la prueba del dispositivo.
- Android – Layout está dando botones de relleno adicional; Dándome pelos grises extra
- Android Google Map v2 Ejemplo de código