Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Passing a variable to a sub activity

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