Passing a variable to a sub activity

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Passing a variable to a sub activity

Postby Bascem » Mon Jun 29, 2009 3:34 pm

Hi,

After making connection to th gtalk server, I want to start a sub activity in which I'll list contacts and manage presence... I need the variable "XMPPConnection connection" to accomplish this task.

How my I pass that variable to the sub activity? and if it's impossible, is there an other solution?

THANK YOU!
Bascem
Freshman
Freshman
 
Posts: 7
Joined: Mon Jun 29, 2009 2:54 pm

Top

Postby Bascem » Tue Jun 30, 2009 6:36 am

Hi,

No one can give me a solution :?

Good :wink:
My solution is to start a service which makes the connection to gtalk server and share informations with activities.

If it's impossible let me know. OK?

Thank you!
Bascem
Freshman
Freshman
 
Posts: 7
Joined: Mon Jun 29, 2009 2:54 pm

Postby Bascem » Fri Jul 31, 2009 12:34 am

Hello,

To make non primitive data (objects like XMPPConnection) accessible accross other activities or servicies you need to set a static field to point to this object.
Bascem
Freshman
Freshman
 
Posts: 7
Joined: Mon Jun 29, 2009 2:54 pm

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 4 guests