title: Creating Default SMS App in Xamarin.Forms
body: <p>I'm developing an SMS app in Xamarin that should be default SMS, I registered the Sms Receiver class, 
  but when the device received a message this error appears.</p>
  
  <pre><code>Java.Lang.RuntimeException: 'Unable to instantiate receivercom.companyName.MySmsApp.DroidSmsReceiver: java.lang.ClassNotFoundException:Didn't find class "com.companyName.MySmsApp.DroidSmsReceiver" on path:DexPathList[[zip file "/data/app/com.companyName.MySmsApp-NaDrepA_GVue_nq4DxzmqA==/base.apk"],nativeLibraryDirectories=[/data/app/com.companyName.MySmsApp-NaDrepA_GVue_nq4DxzmqA==/lib/x86, /data/app/com.companyName.MySmsApp-NaDrepA_GVue_nq4DxzmqA==/base.apk!/lib/x86, /system/lib]]'
  </code></pre>
  
  <p>my Android Manifest:</p>
  
  <pre><code>     &lt;receiver android:name=".DroidSmsReceiver"
          android:exported="true"
          android:permission="android.permission.BROADCAST_SMS"&gt;
          &lt;intent-filter android:priority="999" &gt;
              &lt;action android:name="android.provider.Telephony.SMS_RECEIVED" /&gt;
              &lt;action android:name="android.provider.Telephony.SMS_DELIVER" /&gt;
              &lt;action android:name="android.provider.Telephony.SMS_DELIVER_ACTION" /&gt;
              &lt;action android:name="android.intent.action.BOOT_COMPLETED"/&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  
      &lt;receiver android:name=".MMSBroadcastReceiver"
          android:exported="true"
          android:permission="android.permission.BROADCAST_WAP_PUSH"&gt;
          &lt;intent-filter android:priority="999" &gt;
              &lt;action android:name="android.provider.Telephony.WAP_PUSH_DELIVER" /&gt;
              &lt;data android:mimeType="application/vnd.wap.mms-message" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  
  
  
   &lt;!--  Activity that allows the user to send new SMS/MMS messages --&gt;
      &lt;activity android:name=".ComposeSmsActivity" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.SEND" /&gt;                
              &lt;action android:name="android.intent.action.SENDTO" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
              &lt;data android:scheme="sms" /&gt;
              &lt;data android:scheme="smsto" /&gt;
              &lt;data android:scheme="mms" /&gt;
              &lt;data android:scheme="mmsto" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  </code></pre>
  
     
  
  <pre><code>&lt;service
          android:name=".QuickResponseService"
          android:enabled="true"
          android:exported="true"
          android:permission="android.permission.SEND_RESPOND_VIA_MESSAGE"&gt;
          &lt;intent-filter&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;action android:name="android.intent.action.RESPOND_VIA_MESSAGE" /&gt;
              &lt;data android:scheme="sms" /&gt;
              &lt;data android:scheme="smsto" /&gt;
              &lt;data android:scheme="mms" /&gt;
              &lt;data android:scheme="mmsto" /&gt;
          &lt;/intent-filter&gt;
      &lt;/service&gt;
  </code></pre>
  
  <p>I also tried</p>
  
  <pre><code>     &lt;receiver android:name=".DroidSmsReceiver"
          android:permission="android.permission.BROADCAST_SMS"&gt;
           &lt;intent-filter&gt;
           &lt;action android:name="android.provider.Telephony.SMS_RECEIVED" /&gt;
            &lt;action android:name="android.provider.Telephony.SMS_DELIVER" /&gt;
       &lt;/intent-filter&gt;&lt;/receiver&gt;
  </code></pre>
  
  <p>My Receiver, located in : MySmsApp.Droid</p>
  
  <pre><code>   [BroadcastReceiver(Enabled = true, Exported = true)]
     [IntentFilter(new[] { "android.provider.Telephony.SMS_RECEIVED" })]
     //[IntentFilter(new[] { "android.provider.Telephony.SMS_DELIVER" })]
     public class DroidSmsReceiver : BroadcastReceiver
     {
  
          //private const string IntentAction = "android.provider.Telephony.SMS_RECEIVED";
  
          protected string address, message = "";
          public override void OnReceive(Context context, Intent intent)
          {
                 //message received
          }
       }
  </code></pre>
  
  <p>i also registered the receiver in MainActivity.cs</p>
  
  <pre><code>   RegisterReceiver(new DroidSmsReceiver(), new IntentFilter("android.provider.Telephony.SMS_DELIVER"));
  </code></pre>
  
  <p>Thanks in advance Guys.</p>