I was a bit confused by your question. Are they 2 applications, or 2
activities within the same application?
If they are activities within the same application, could you use the
Application context to synchronize access to the singleton?

On May 26, 5:06 am, Oceanedge <[email protected]> wrote:
> I'm developing a photo editor application. It will launched by
> android.intent.action.EDIT intent. I made two application to emit that
> intent. I found that two instance of my photo editor activity is
> created within the same process which is named as my activity. But
> there is a singleton class used in my  photo editor activity and that
> two activities use the same singleton class instance which break my
> application logic.
> I wonder if there is any way to let Android create my activity within
> the process which the launcher activity lies in? So that the two
> instance of my photo editor activity can be separated into two
> different process. And so they can reference to different instance of
> that  singleton class.
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to