How to solve the problem of launch the apps twice or more?

by Dianne Hackborn » Wed, 21 Apr 2010 11:26:25 GMT


Sponsored Links
 Make sure you aren't calling startActivity() anywhere, such as in
onCreate().

Look at the log (adb logcat) and event log (adb logcat -b events) to see
what the system is saying about launching and handling activities.

Please don't use singleTask or singleInstance to fix such problems, they are
not needed and have other repercussions you probably don't want.






> >



How to solve the problem of launch the apps twice or more?

by Dianne Hackborn » Wed, 21 Apr 2010 13:07:44 GMT


 Starting a service doesn't have anything to do with the activity stack.  It
is only needed if you actually must have a service running even after the
user leaves your app.  (And of course you must have a good plan for how you
will stop the service, so it doesn't get left running forever.)








> > > >


Sponsored Links