• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Pass object, parce , serialize exist another ?

drakgoku1

Lurker
I have one of my classe called "Connect" which is within this xmpp connections
but I have a problem in passing this subject, I want to turn in a session,

How I can fix this? is there any method that can pass objects to other activities?

I try :
PHP:
Connext connect;

1 FORM
PHP:
Bundle bun = new Bundle();
bun.putSerializable("CON", (Serializable) connect.getConnectionConfiguration());
intent.putExtras(bun);
2 FORM
PHP:
Bundle bun = new Bundle();
bun.putParcelable("connection", (Parcelable) connect);

3 FORM
PHP:
intent.putExtra("connection", connect); // serialize class Connect


Always get Null why ?
 
Does your Connext object actually implement Parcelable or Serializable?


You might look at Otto

Not work!

- Parceable, can't write XMPP return only int float byte string etc... but xmpp not
- Serialize not work, always get null (with variables "transient", without transient error important)

I have another way of make ;)
 
Back
Top Bottom