I'm starting to write a little client to use GTalk over Android... Now I've 2 activity, the first is a tipically login page where there are 2 fields where is possible to insert username and password, and the second is an ListActivity to show all the GTalk contact.
I've also created a classes to handle the connection to the XMPP protocol that return me the object connection (GTalkUtility).
Now... when I start the first activity and I insert the right 'user' and 'pass' will be created a new connection object. Once this object is created i need to pass it to the ListActivity to get all the contact avaiables...
I've tried in the fellows way
the mGTalkUtility is a class that implements Serializable, but when use the debug mode I see that this Object doesn't pass in the second Activity (contactList.class)
- How can I pass a complex object through 2 activity?
- There is some other way to pass an Object ( in that case the GTalkUtility class ) over 2 activity???
- there is some kind of 'session' or 'global' place where is possible to set this object from where it can be called from all the activity?
someone can help me