Android

Aplicaciones Android.

iPhone

Aplicaciones iPhone/iPad.

HTML5

Aplicaciones moviles web en HTML5.
 

Paso de Objetos por Intents

domingo, 22 de julio de 2012

Realizar el paso de objetos, es tal como se pasan otros tipos de datos por medio de los Intent.
El siguiente codigo se coloca en el Activity1 que realiza el llamado al Activity2, pasandole una instancia del objeto MyObject.


Intent i = new Intent(this, Activity2.class);
i.putExtra(ID, object);
startActivity(i);

Ya sobre el Activity2 se recupera por medio del getSerializable()

MyObject recibir = (MyObject)extras.getSerializable(MyObject.ID);




Lorem

Please note: Delete this widget in your dashboard. This is just a widget example.

Ipsum

Please note: Delete this widget in your dashboard. This is just a widget example.

Dolor

Please note: Delete this widget in your dashboard. This is just a widget example.