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. Restoring focus to ListView

I have a ListView in a ListActivity that starts another Activity when
a list item is clicked.  The 2nd Activity is a Theme.Dialog, but I
don't think that matters for this purpose.

I would like the visible focus restored to the ListView when I close
the 2nd Activity.  Currently,when I come back, I have to hit the
trackball once to give focus to the ListView and then hit it again to
move around in the list.

I tried the obvious getListView().requestFocus() from onResume().  I
also tried saving the current focused view using getListView
().findFocus() before starting the 2nd Activity, but neither of these
methods work.

I am using API Level 7 in the Emulator.

Can anyone help?

Thanks,
Zsolt Vasvari

2. (was OOT: Clear coat by showcase fever)

-- 
=========================
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click  

3. How to unlock HTC magic retail to dev phone?

4. Hello Date Picker

5. Mod: Gathering ID-Android With XL, Minggu, 17 Januari 2010 (Soho Music Cafe, Lantai 5 Senayan City)

6. GMail App Stuck on Sending

7. android emulator and AudioRecord - audio in