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

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 - Share information between Activities

Share information between Activities

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

Share information between Activities

Postby turim » Fri Nov 25, 2011 5:46 pm

how best to share complex objects between Activities ?

When use Intent (putExtra), a new object is created.
The Google advises to uses 3 approaches:
- Singleton class
- A public static field/method
- A HashMap of WeakReferences to Objects

My application have many objects, and i need pass objects (in memory) between Activities.

How is the best approaches ?

Thanks
turim
Freshman
Freshman
 
Posts: 3
Joined: Mon May 02, 2011 2:10 pm

Top

Re: Share information between Activities

Postby vandzi » Sat Dec 31, 2011 4:52 pm

I wrote blog post about this. It works for me. I hope it will be helpfull for you too
http://vandzi.wordpress.com/2011/12/24/android-passing-objects-between-activities/
vandzi
Junior Developer
Junior Developer
 
Posts: 20
Joined: Fri Jun 11, 2010 11:31 am
Location: Slovakia

Top

Return to General

Who is online

Users browsing this forum: No registered users and 3 guests