2011-12-26

Writing Numbers (Escribir Números) by GrammarBook

How to writing numbers in English

Cómo escribir números en Inglés.

http://www.grammarbook.com/numbers/numbers.asp

2011-12-16

FSF Campaigns Widgets

FSF Campaigns Widgets Want to help the FSF with its fundraising activities? By putting their campaigns widgets on your website or blog, you can help them reach their fundraising target. Or you can better donate. ¿Quieres ayudar a la FSF con su recaudación de fondos? Poniendo los widgets de su campaña en tu web o blog, puedes ayudarles a conseguir el objetivo de su recaudación de fondos. O mejor haz una donación.

2011-12-06

onSaveInstanceState llamado dos veces


Cuando rotas el emulador de android, la primera vez los componentes mantienen su estado, todo está bien, pero la segunda vez, onSaveInstanceState es llamado dos veces, porque la activity es instanciada dos veces, una por un pequeño intervalo de tiempo y otra para mantenerla visible. La primera de esta pareja no restaura el estado previo guardado con onSaveInstanceState, porlo que restaurandola se limpiará el estado guardado.

Esto sólo ocurre en el EMULADOR por lo que esto no debería preocupar a nadie, pero hay una solución para prevenir este problema que no perjudica a tu aplicación. Si no necesitas el teclado simplemente añade esto al manifiesto de tu activity en AndroidManifest.xml.

android:configChanges="keyboardHidden"

Pero esto sólo funciona si lo rotas despacio, si lo rotas dos veces justo cuando la activity está restaurándose seguirás teniendo el mismo problema.

Visto  aquí

onSaveInstanceState called twice

When you rotate the android emulator, first time components keep their state, nothing is wrong, but second time, onSaveInstanceState is called twice, because the activity is instantiated twice, one for a little interval of time and other to keep visible. The first of this couple do not restore the previous state saved with onSaveInstanceState, so restoring it will clear the saved state. 

This only happens in the EMULATOR so this don't should concern anybody, but there is a workaround to prevent this problem that doesn't hurt you application. I you don't need to show the keyboard just add this to you activity manifest in AndroidManifest.xml

android:configChanges="keyboardHidden"

But it only works if you rotate slowly, if you rotate it twice just when the activity is restoring state you'll still have the same problem.

I get this here here