qlimax wrote:I would remember that implementing the Serializable interface and passing the object via putSerializable / getSerializable, you will make a copy of the object. no reference will be passed.
If you want to avoid copying the objects, you can use your Application class to exchange objects. Extend the Application class, put it in your Manifest and put a HashMap<String, Object> in it. Now in any Activity you can do something like that:
((MyApplication)getApplication()).getObject(MY_KEY); // or put the same way
where MY_KEY is a String as you normally use keys in Intent extras.
Users browsing this forum: No registered users and 14 guests