Sorry, there are three separate applications. One is my Photo Editor application. The other two applications are the launcher applications, they emit android.intent.action.EDIT intent to launch my Photo Editor application.
The Photo Editor application contains my photo editor activity which uses a singleton class. And that singleton class instance is used by the two instance of my photo editor activity due to other two applications both emit android.intent.action.EDIT intent. What do you mean use the Application context to synchronize access to the singleton? How should I use it? Thanks! On May 26, 12:26 pm, Matt Williams <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---

