Android how to share custom objects instance in the application
<p>I have created an application which uses a lot of custom objects I've created to manage parts of the application.</p>

<p>for example:</p>

<ul>
<li>FacebookManager class - responsible for connecting to facebook</li>
<li>DatabaseManager class - responsible for application's database connection</li>
<li>etc...</li>
</ul>

<p>these classes must be reachable for all application's classes.</p>

<p>i've extend the Application class and i'm sharing the Application instance between class so every class will be able to reach the global objects (and some more methods).
i'm wondering if this is the correct way of doing what i want, or should i create a class with static methods for the same propose.</p>

<p>I've read a lot about it and understood that from the memory point of view - non of these ways are best.</p>

<p>is there a way to save an object to the SharedPereferences and get it from another class ?
or any other idea ?</p>
