Multiple Instances of App Running When Home + Restart

by Jason Van Anden » Mon, 06 Apr 2009 00:01:28 GMT

Sponsored Links
 Sure ...

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="" ;

   <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <application android:icon="@drawable/icon"
android:label="@string/app_name" android:theme="@style/Theme.NoBackground">
        <activity android:name=".SurfaceLoopActivity"
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
    <service android:enabled="true" android:name=".SurfaceLoopService"


What is also perplexing is that when onCreate is called (after restart via
app icon) its bundle is null (even though save the state).  Perhaps this is
a clue.

Jason Van Anden


Multiple Instances of App Running When Home + Restart

by Jason Van Anden » Mon, 06 Apr 2009 00:28:49 GMT

 I figured it out (thanks to your request for the Manifest file, I started

Adding this to the Activity tag ...


fixed the problem.

Thanks Mark!


Sponsored Links

Multiple Instances of App Running When Home + Restart

by Jason Van Anden » Mon, 06 Apr 2009 00:41:54 GMT

 FYI ... this problem occurs with the LunarLander example as well.

When I am not so crazed I will post some code that does a pretty good
job illustrating a (simpler || better || hopefully || somewhat)
optimized demo of running a SurfaceView. LL is OK, but it spawned a
few red herrings for me.

Streets of Boston's suggestions in the android-developer's topic
"Troubles with SurfaceView's surfaceCreated/Destroyed" combined with
reading through the "GL SurfaceView" API example helped things along
(thanks all).

Jason Van Anden 

On Sun, Apr 5, 2009 at 12:28 PM, Jason Van Anden


Other Threads

1. Network Monitoring

Is there a way to monitor the IP traffic? For example throughput?
If not in java, can it be done through native code? I have seen some
IP sniffer source code for linux.

2. When will we be able to install applications on SD card?

With all these interesting applications coming out by the hour, I ran
out of room 2 days ago.  I can't wait to be able to move installed
applications to the SD card or, at least, uninstall the ones I have
and reinstall them on the SD card.  I was wondering if anyone had any
inside information on when this will happen, most likely via FOTA.
Or, ideally, someone from the Android team giving us some real hope
here.  I'll take this before an on-screen virtual keyboard.

3. What is the difference between OnClickListener and OnTouchListener?

4. going to the metal

5. Mail app from open source fails to build with SDK 1.0

6. Sockets and bluetooth

7. Enabling audio in emulator