title: monodroid receiver PACKAGE_REMOVED java.lang.ClassNotFoundException
body: <p>I am using monodroid.  I keep receiving java.lang.ClassNotFoundException error when the PACKAGE_REMOVED action is trapped.  I have searched and attempted many things on stackflow and other sites, but can not get this working.  Any help would be appreciated.</p>
  
  <p>AndroidManifest.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="internalOnly"&gt;
  &lt;uses-sdk android:targetSdkVersion="10" /&gt;
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;application android:icon="@drawable/Icon" android:label="App Store"&gt;
  &lt;receiver android:name=".PackageChangeReceiver" android:exported="true" android:enabled="true"&gt;
    &lt;intent-filter android:priority="999"&gt;
      &lt;action android:name="android.intent.action.PACKAGE_REMOVED" /&gt;
      &lt;category android:name="android.intent.category.DEFAULT" /&gt;
      &lt;data android:scheme="package" /&gt;
    &lt;/intent-filter&gt;
  &lt;/receiver&gt;
  &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Broadcast Receiver (PackageChangeReceiver.cs)</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  
  using Android.App;
  using Android.Content;
  using Android.OS;
  using Android.Runtime;
  using Android.Views;
  using Android.Widget;
  using System.Net;
  using System.IO;
  using Android.Util;
  
  namespace AppStore
  {
  [BroadcastReceiver]
  public class PackageChangeReceiver : BroadcastReceiver
  {
      public override void OnReceive(Context context, Intent intent)
      {
          if ("android.intent.action.PACKAGE_REMOVED".Equals(intent.Action))
          {
              Boolean replacing = intent.GetBooleanExtra(Intent.ExtraReplacing, false);
              if (replacing)
              {
                  //do nothing because will be reinstalled again
              }
              else
              {
                  Intent pushIntent = new Intent(context, typeof(UpdatesService));
                  pushIntent.PutExtra("appname", intent.Data.ToString());
                  context.StartService(pushIntent);  
              }
          }
      }
  }
  }
  </code></pre>