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

by Mark Murphy » Wed, 21 Apr 2010 18:49:53 GMT


Sponsored Links
 


Please don't do that.

First, it's not possible:

 http://www.androidguys.com/2009/09/09/diamonds-are-forever-services-are-not/ 

Second, it's a bad idea to even try:

 http://www.androidguys.com/2010/03/29/code-pollution-background-control/ 


What is "it"?

Services are natural singletons -- there is exactly 0 or 1 copy of the
service running at any point. The goal is for there to be 0 copies of
the service running unless it is actively delivering user-perceived value.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

_Beginning Android 2_ from Apress Now Available!

--



Other Threads

1. android restart during a2dp connection

Hi,

We see this problem only when HSP/HFP is involved in a connection.
On having just the a2dp connection, the problem does not exist.

What is causing android to restart on a HSP/HFP connection ?

regards,
Pavan







-- 
--Pavan Savoy

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Is it possible to connect to a local dev server using Phone connected to debugger?

I'd like to connect to a local tomcat dev server on my laptop and use
my android phone connected via a usb cable to debug things.  Is this
possible?

Do I need to use wifi to make this happen?


--~--~---------~--~----~------------~-------~--~----~

3. Text and delay

4. mobile ARM11-based platform, Linux 2.6.30 drivers - seeking suggestions for a quick port

5. Camera Activity

6. default measuring units px or dp

7. Contacts GroupU - easily manage your contacts