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=" http://schemas.android.com/apk/res/android" ;
      package="us.quadrant2.surfacelooptest"
      android:versionCode="1"
      android:versionName="1.0.0">

   <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"
                  android:label="@string/app_name"
                  >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    <service android:enabled="true" android:name=".SurfaceLoopService"
</application>

</manifest>

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.

Thanks,
Jason Van Anden
www.smileproject.com







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



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
digging).

Adding this to the Activity tag ...

android:launchMode="singleTask"

fixed the problem.

Thanks Mark!
i++







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


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
 http://www.smileproject.com 

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




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



Other Threads

1. Create a bitmap from a decoded pixel array

Hi Folks,

I am trying to figure out how to create a Bitmap from a pixel array of
bytes representing pixel value.

==========================================================
Bitmap myBitmap = BitmapFactory.decodeByteArray (pixelByteArray,
offset, pixelByteArray.length);
==> return null
==========================================================

- BitmapFactory.decodeByteArray( ) is only for data to be decoded and
returns null from my input array.

I also found:
- public static Bitmap createBitmap (int[] colors, int width, int
height, Bitmap.Config config) but it takes int as input and not bytes.
Each channel is usually coded between 0 and 255.

Thanks in advance,
STN

-- 

2. recovery-package generator script

Hi All,
   I have came across recovery module in android tree bootable/
recovery.

It seems that it is using a update.zip file which is available in the
sdcard and update software of the phone.

I have seen that almost all phones which are released in market are
supporting this concept.

My question is :
Who will generate update.zip file?
is there any script available, that is used to generate update.zip?

Thanks in advance.

Regards
Seshagiri.Holi


-- 

3. DownloadManager lack of functionality. Bug or intentional limitation?

4. Change android status bar height

5. New added raw contacts are not shown

6. bluetooth / serial device

7. How to change the Width and Height of the AVD