c# - monodroid receiver PACKAGE_REMOVED java.lang.ClassNotFoundException -


I'm using monodroid I'm getting the java.lang.ClassNotFoundException error when PACKAGE_REMOVED action gets stuck. Stackflow and other sites have searched and tried, but it can not work any help would be appreciated.

AndroidManifest.xml

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Manifest xmlns: Android = "http://schemas.android.com/apk/res/android" Android: installLocation = "Internal Only" & gt; & Lt; Usage-SDK Android: targetSdkVersion = "10" /> & Lt; Usage-permission Android: name = "android.permission.INTERNET" /> & Lt; Apps Android: Icon = "@ Drable / Icon" Android: label = "App Store" & gt; & Lt; Receiver Android: name = ". PackageChangeReceiver" Android: export = "true" android: enabled = "true" & gt; & Lt; Intro-Filter Android: Priority = "99 9" & gt; & Lt; Action Android: name = "android.intent.action.PACKAGE_REMOVED" /> & Lt; Category android: name = "android.intent.category.DEFAULT" /> & Lt; Data Android: scheme = "package" /> & Lt; / Intent-Filter & gt; & Lt; / Receiver & gt; & Lt; / Application & gt; & Lt; / Reveal & gt;   

Broadcast receiver (PackageChangeReceiver.cs)

  using the system; Using System.Collections.Generic; Using System.Linq; Using System.Text; Using Android. App; Using Android. Content; Using Android .OS; Using Android. From time to time; Using Android. See; Using Android.Widget; Using System.Net; Using System.IO; Using Android. Namespace AppStore {[BroadcastReceiver] Public Category Package Change Receiver: Broadcast Receiver {Public Override Recovery (intended for reference reference, intent) {if ("android.intent.action.PACKAGE_REMOVED" .Equals (intent.Action)) {Boolean key Place = intent.Getballian extras (Intent.ExtraReplacing, Incorrect); If (in place of) {// nothing is to be restored again}} other {intent pushIntent = new intent (context, type (updates service)); PushIntent.PutExtra ("appname", intent.Data.ToString ()); Context.StartService (pushIntent); It seems like I've contacted xoraminin (monodride) directly. That's my mistake manifest was in the manual editing. I searched a web search for the solution and added the entries in the manifest. However, it did not connect with the monodroid code. Since monodord appears automatically, you will need to use the attributes on such broadcast receivers:  
  [broadcast receiver] [intintfilter (new string [] {intent. Action package removed} , Priority = (int) IntentFilterPriority. High Priority, DataSaemy = "Package")] Public Class Package Change Receiver: Broadcast Receiver {  

Hope this helps others.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -