title: why is my Activity being logcat="WIN DEATH Killing ProcessRecord" when i mount sd card to computer
body: <p>My <code>Activity</code> have the <code>android.intent.action.SEND</code> in the manifest so<br>
  i select an image in the Android <code>Gallery</code> and my <code>Activity</code> open right.   </p>
  
  <p>If i select from the <code>Notification</code> menu to mount the phone<br>
  to the computer the <code>Activity</code> is being killed by the system.</p>
  
  <pre><code>Force stopping package de.android_telefonie.appmanager uid=10111   
  Force stopping package com.twoplay.twoplayer uid=10083             
  Force stopping package com.spritefish.fastburstcameralite uid=10086
  Force stopping package org.openintents.filemanager uid=10077       
  Force stopping package com.google.zxing.client.android uid=10071   
  Force stopping package com.domobile.efile uid=10081                
  Force stopping package com.google.android.apps.shopper uid=10067  
  </code></pre>
  
  <p>What can i be doing wrong?</p>
  
  <p><em><strong>UPDATE</em></strong>
  MANIFEST</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
            package="com.carlsberg.holta" 
            android:versionCode="1"       
            android:versionName="0.52"   
            android:installLocation="internalOnly"&gt;
  
      &lt;permission android:name="com.carlsberg.holta.permission.C2D_MESSAGE" 
                  android:protectionLevel="signature" /&gt;
  
        &lt;uses-permission android:name="com.carlsberg.holta.permission.C2D_MESSAGE" /&gt;
        &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
      &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;  
      &lt;uses-permission android:name="android.permission.USE_CREDENTIALS"/&gt;    
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
        &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt; 
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
      &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
      &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  
      &lt;uses-sdk android:minSdkVersion="8" /&gt;
  
      &lt;application android:icon="@drawable/launcher" android:label="@string/string_app_name"&gt;
  
          &lt;activity android:name=".ActivityMainLauncher" 
                    android:label="@string/string_app_name"
                    android:configChanges="keyboardHidden|orientation"
                    android:launchMode="singleTop"
                    android:icon="@drawable/launcher"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.SEND" /&gt;
                      &lt;category android:name="android.intent.category.DEFAULT" /&gt;
                      &lt;data android:mimeType="image/*" /&gt;
                      &lt;data android:mimeType="video/*" /&gt; 
                      &lt;data android:mimeType="audio/*" /&gt;
                      &lt;data android:mimeType="text/*" /&gt;
                      &lt;data android:mimeType="application/*" /&gt;
              &lt;/intent-filter&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.SEND_MULTIPLE" /&gt;
                      &lt;category android:name="android.intent.category.DEFAULT" /&gt;
                      &lt;data android:mimeType="image/*" /&gt;
                      &lt;data android:mimeType="video/*" /&gt; 
                      &lt;data android:mimeType="audio/*" /&gt;
                      &lt;data android:mimeType="text/*" /&gt;
                      &lt;data android:mimeType="application/*" /&gt;               
  
              &lt;/intent-filter&gt;  
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
  
          &lt;/activity&gt;    
  
          &lt;activity android:name=".gallery.ActivityGallery" 
                    android:icon="@drawable/launcher_gallery"
                    android:label="@string/string_app_name_gallery"
                    android:layout_width="fill_parent" 
                    android:layout_height="fill_parent" 
                    android:taskAffinity="com.carlsberg.holta.GalleryActivity"
                    android:configChanges="orientation|keyboardHidden"
                    android:launchMode="singleTop"    &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
  
         &lt;activity android:name=".send.ActivitySend"
                      android:launchMode="singleTask"
                      android:screenOrientation="portrait"
                      android:configChanges="orientation|keyboardHidden"&gt;
  
          &lt;/activity&gt;     
  
          &lt;activity android:name=".ActivityRemoveFriend"
                    android:label="@string/string_app_name" 
                    android:theme="@android:style/Theme.Dialog"
                    android:configChanges="keyboardHidden|orientation"&gt;       
  
          &lt;/activity&gt; 
  
          &lt;activity android:name="com.carlsberg.holta.history.TabActivityHistoryLauncher"
                    android:launchMode="singleTask"
                    android:label="@string/string_app_name" 
                    &gt;
          &lt;/activity&gt;
  
          &lt;activity android:name="com.carlsberg.holta.history.ActivityTabGroup1"&gt;&lt;/activity&gt;
          &lt;activity android:name="com.carlsberg.holta.history.ActivityTabGroup2"&gt;&lt;/activity&gt; 
  
          &lt;activity android:name="com.carlsberg.holta.history.ActivityHistoryOutgoing"&gt;&lt;/activity&gt;                     
          &lt;activity android:name="com.carlsberg.holta.history.ActivityHistoryIncoming"&gt;&lt;/activity&gt; 
  
          &lt;activity android:name=".ActivityLogin" 
                    android:label="@string/string_app_name" 
                    android:theme="@android:style/Theme.Dialog"
                    android:configChanges="keyboardHidden|orientation"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.VIEW" /&gt;
                  &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity android:name=".ActivityAddFriend" 
                    android:label="@string/string_app_name" 
                    android:theme="@android:style/Theme.Dialog"
                    android:configChanges="keyboardHidden|orientation"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.VIEW" /&gt;
                  &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;   
  
          &lt;activity android:name=".ActivityAcceptFriend"             
                    android:label="@string/string_app_name" 
                    android:theme="@android:style/Theme.Dialog"
                    android:configChanges="keyboardHidden|orientation"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.VIEW" /&gt;
                  &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  &lt;!--         &lt;activity android:name=".GalleryView"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.VIEW" /&gt;
                  &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt; --&gt;
          &lt;service android:name=".IntentServiceSendFiles" android:label="@string/string_sendFileService"&gt;
  &lt;!--            &lt;intent-filter&gt;
                  &lt;action android:name="com.Hasse.holta.SendFileService"&gt;
                  &lt;/action&gt;
              &lt;/intent-filter&gt;   --&gt;      
           &lt;/service&gt;
          &lt;service android:name=".IntentServiceGetFiles" android:label="@string/string_getFileService"&gt;
  
           &lt;/service&gt; 
          &lt;service android:name=".ServiceBootCompleated" android:label="@string/string_batchtester"&gt;
  
           &lt;/service&gt;                  
          &lt;service android:name=".C2DMReceiver" /&gt;
          &lt;receiver android:name="com.google.android.c2dm.C2DMBroadcastReceiver"
                  android:permission="com.google.android.c2dm.permission.SEND"&gt;
                  &lt;intent-filter&gt;
                          &lt;!-- Receive the actual message --&gt;
                          &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
                          &lt;category android:name="com.carlsberg.holta" /&gt;
                  &lt;/intent-filter&gt;
                  &lt;intent-filter&gt;
                          &lt;!-- Receive the registration id --&gt;
                          &lt;action android:name="com.google.android.c2dm.intent.REGISTRATION" /&gt;
                          &lt;category android:name="com.carlsberg.holta" /&gt;
                  &lt;/intent-filter&gt;
          &lt;/receiver&gt;
              &lt;receiver  android:name=".AlarmReceiver"&gt;
          &lt;/receiver&gt;
          &lt;receiver android:name=".myBroadcastReceiver"&gt;  
              &lt;intent-filter&gt;  
                  &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;  
              &lt;/intent-filter&gt;  
          &lt;/receiver&gt;
  
          &lt;provider android:name=".contentprovider.UserContentProvider"
              android:authorities="com.carlsberg.holta.contentprovider" &gt;
          &lt;/provider&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p><strong>UPDATE</strong> 
  The ActivitySend is my class. You'll see it OnStart(), OnResume()<br>
  then I mount the SD card and the killing begins.<br>
  (just restarted the phone to eliminate cache problem)</p>
  
  <pre><code>DEBUG/SwitchUsbSettings(367): getUpdateInfo() no update
  DEBUG/SwitchUsbSettings(367): -enableDiskDrive()
  INFO/global(367): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
  DEBUG/SwitchUsbSettings(367): usb_cable_connect = 1
  INFO/PackageManager(113): Updating external media status from mounted to unmounted
  DEBUG/VoldCmdListener(62): asec list
  INFO/LSState(113): EventReceiver:android.intent.action.NOTIFICATION_UPDATE
  DEBUG/AK8973(72): Compass Start
  DEBUG/Sensors(113): open_akm, fd=106
  DEBUG/Sensors(113): close_akm, fd=106
  DEBUG/NetSharing_NSReceiver(346): onReceive : INTENT_DISK
  DEBUG/UsbConnectedReceiver(367): action = com.htc.android.ackISOFF
  DEBUG/UsbConnectedReceiver(367): Received intent:com.htc.android.ackISOFF
  DEBUG/ActivitySend(1119): onStart ***********************************************************************
  DEBUG/ActivitySend(1119): onResume ***********************************************************************
  DEBUG/VoldCmdListener(62): asec path android.androidVNC-1
  DEBUG/VoldCmdListener(62): asec path org.openintents.filemanager-1
  DEBUG/VoldCmdListener(62): asec path de.android_telefonie.appmanager-1
  DEBUG/VoldCmdListener(62): asec path org.cohortor.gstrings-2
  DEBUG/AK8973(72): Compass CLOSE 
  DEBUG/VoldCmdListener(62): asec path com.easyshare.android-1
  DEBUG/VoldCmdListener(62): asec path com.twoplay.twoplayer-2
  DEBUG/VoldCmdListener(62): asec path com.google.android.apps.shopper-1
  DEBUG/VoldCmdListener(62): asec path radioenergy.app-2
  DEBUG/VoldCmdListener(62): asec path com.carlsberg.PTPPService-1
  DEBUG/VoldCmdListener(62): asec path com.domobile.efile-2
  DEBUG/VoldCmdListener(62): asec path com.spritefish.fastburstcameralite-2
  DEBUG/VoldCmdListener(62): asec path com.google.zxing.client.android-2
  INFO/PackageManager(113): Removing non-system package:com.google.zxing.client.android
  INFO/ActivityManager(113): Force stopping package com.google.zxing.client.android uid=10071
  DEBUG/SurfaceFlinger(113): Layer::setBuffers(this=0x7713b0), pid=1119, w=480, h=800
  DEBUG/SurfaceFlinger(113): Layer::setBuffers(this=0x7713b0), pid=1119, w=480, h=800
  DEBUG/SlidingDrawerLeftOptions(1119): handleHeight: 400
  DEBUG/SlidingDrawerLeftFriends(1119): handleHeight: 132
  DEBUG/SurfaceFlinger(113): Layer::requestBuffer(this=0x7713b0), index=0, pid=1119, w=480, h=800 success
  WARN/InputManagerService(113): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@466de6e0 (uid=10001 pid=367)
  DEBUG/SurfaceFlinger(113): Layer::requestBuffer(this=0x7713b0), index=1, pid=1119, w=480, h=800 success
  INFO/PackageManager(113): Removing non-system package:radioenergy.app
  INFO/ActivityManager(113): Force stopping package radioenergy.app uid=10068
  INFO/PackageManager(113): Removing non-system package:de.android_telefonie.appmanager
  INFO/ActivityManager(113): Force stopping package de.android_telefonie.appmanager uid=10111
  VERBOSE/AlarmManager(113): Alarm triggering: Alarm{463fde98 type 2 com.fring}
  VERBOSE/AlarmManager(113): Adding Alarm{463fde98 type 2 com.fring} jan 01 01:05:10 f.m.
  INFO/PackageManager(113): Removing non-system package:android.androidVNC
  INFO/ActivityManager(113): Force stopping package android.androidVNC uid=10058
  INFO/PackageManager(113): Removing non-system package:org.cohortor.gstrings
  INFO/ActivityManager(113): Force stopping package org.cohortor.gstrings uid=10064
  INFO/PackageManager(113): Removing non-system package:com.spritefish.fastburstcameralite
  INFO/ActivityManager(113): Force stopping package com.spritefish.fastburstcameralite uid=10086
  INFO/PackageManager(113): Removing non-system package:com.twoplay.twoplayer
  INFO/ActivityManager(113): Force stopping package com.twoplay.twoplayer uid=10083
  INFO/PackageManager(113): Removing non-system package:com.easyshare.android
  INFO/ActivityManager(113): Force stopping package com.easyshare.android uid=10104
  INFO/PackageManager(113): Removing non-system package:com.domobile.efile
  INFO/ActivityManager(113): Force stopping package com.domobile.efile uid=10081
  INFO/PackageManager(113): Removing non-system package:com.google.android.apps.shopper
  INFO/ActivityManager(113): Force stopping package com.google.android.apps.shopper uid=10067
  INFO/PackageManager(113): Removing non-system package:org.openintents.filemanager
  INFO/ActivityManager(113): Force stopping package org.openintents.filemanager uid=10077
  DEBUG/dalvikvm(113): JIT code cache reset in 8 ms (1048528 bytes 1/0)
  DEBUG/dalvikvm(113): GC_FOR_MALLOC freed 40848 objects / 2270952 bytes in 147ms
  INFO/ActivityManager(113): Force stopping package com.google.zxing.client.android uid=10071
  INFO/ActivityManager(113): Force stopping package radioenergy.app uid=10068
  INFO/ActivityManager(113): Force stopping package de.android_telefonie.appmanager uid=10111
  INFO/ActivityManager(113): Force stopping package android.androidVNC uid=10058
  INFO/ActivityManager(113): Force stopping package org.cohortor.gstrings uid=10064
  INFO/ActivityManager(113): Force stopping package com.spritefish.fastburstcameralite uid=10086
  INFO/ActivityManager(113): Force stopping package com.twoplay.twoplayer uid=10083
  INFO/ActivityManager(113): Force stopping package com.easyshare.android uid=10104
  INFO/ActivityManager(113): Force stopping package com.domobile.efile uid=10081
  INFO/ActivityManager(113): Force stopping package com.google.android.apps.shopper uid=10067
  INFO/ActivityManager(113): Force stopping package org.openintents.filemanager uid=10077
  DEBUG/dalvikvm(269): GC_EXPLICIT freed 5940 objects / 304472 bytes in 82ms
  DEBUG/dalvikvm(273): GC_EXPLICIT freed 8096 objects / 453824 bytes in 101ms
  DEBUG/HomeLoaders(273): load applications
  DEBUG/HomeLoaders(273): loading user items
  DEBUG/HomeLoaders(273):   --&gt; starting workspace loader
  DEBUG/RosieDbDebug(273): startLoaders(true)
  DEBUG/HomeLoaders(273): Remove temporary ItemInfo : screen &lt; 0 OR cellX &lt; 0 OR cellY &lt; 0 
  DEBUG/HomeLoaders(273): get install or remove message so do change adapter
  DEBUG/dalvikvm(113): GC_EXPLICIT freed 14816 objects / 1049576 bytes in 100ms
  DEBUG/HomeLoaders(273): Locale changed, rename scenes according to new Locale settings.
  DEBUG/VoldCmdListener(62): asec unmount com.google.zxing.client.android-2 force
  DEBUG/vending(639): [31] LocalAssetDatabase.notifyListener(): -7966251291516292305 / UNINSTALLED
  DEBUG/VoldCmdListener(62): asec unmount radioenergy.app-2 force
  DEBUG/VoldCmdListener(62): asec unmount de.android_telefonie.appmanager-1 force
  DEBUG/VoldCmdListener(62): asec unmount android.androidVNC-1 force
  DEBUG/VoldCmdListener(62): asec unmount org.cohortor.gstrings-2 force
  DEBUG/VoldCmdListener(62): asec unmount com.spritefish.fastburstcameralite-2 force
  DEBUG/VoldCmdListener(62): asec unmount com.twoplay.twoplayer-2 force
  DEBUG/VoldCmdListener(62): asec unmount com.easyshare.android-1 force
  DEBUG/VoldCmdListener(62): asec unmount com.domobile.efile-2 force
  DEBUG/VoldCmdListener(62): asec unmount com.google.android.apps.shopper-1 force
  DEBUG/VoldCmdListener(62): asec unmount org.openintents.filemanager-1 force
  DEBUG/VoldCmdListener(62): storage users /mnt/sdcard
  WARN/ActivityManager(113): Killing processes unmount media at adjustment 0
  WARN/ActivityManager(113): Killing ProcessRecord{46427398 1119:com.carlsberg.holta/10011} (adj 0): unmount media
  DEBUG/VoldCmdListener(62): storage users /mnt/sdcard
  INFO/WindowManager(113): WIN DEATH: Window{4670b0f0 com.carlsberg.holta/com.carlsberg.holta.send.ActivitySend paused=false}
  ERROR/ActivityManager(113): fail to set top app changed!
  DEBUG/AK8973(72): Compass Start
  DEBUG/Sensors(113): open_akm, fd=33
  </code></pre>