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


Other Threads

1. Problem in Showing TXT file in Webview

Hello

I am reading a txt file using Stringbuffer and try to show it in webview by
adding simple html tags (<html><Body>"My txt content"</html></Body>)
but it is not showing Spacial characters so can u please help me or any
other way to show txt file in Web Browser....

-- 

2. GLSurfaceView given to a PopupWindow trouble (is it possible??)

Hello,

This post is in follow-up to the following topic:

3. Android Drm provider and forward locking

4. AudioRecord on Emulator with friquency > 8 kHz

5. hey everyone - couple of things that have been bothering me

6. Apps-license list

7. Get unique ID of phone - Settings.Secure.ANDROID_ID not working on N1?