Xamarin Android Unable to bind to service Null Pointer
<p>Hello i'm using Xamarin C# for Android.
I tried to build a Widget with ListView.</p>

<p>my ported Code : <a href="https://github.com/Nailik/AppWidgetListView" rel="nofollow">https://github.com/Nailik/AppWidgetListView</a></p>

<p>First i ported this to C#:
<a href="https://laaptu.wordpress.com/2013/07/19/android-app-widget-with-listview/" rel="nofollow">https://laaptu.wordpress.com/2013/07/19/android-app-widget-with-listview/</a>
(source: <a href="https://github.com/laaptu/appwidget-listview/tree/appwidget-listview1" rel="nofollow">https://github.com/laaptu/appwidget-listview/tree/appwidget-listview1</a>)</p>

<p>then i made this Change: <a href="https://forums.xamarin.com/discussion/16930/app-widget-with-listview" rel="nofollow">https://forums.xamarin.com/discussion/16930/app-widget-with-listview</a></p>

<p>and now i stuck. Everytime i try to add the Widget to my Screen it's only showing the remoteviews empty view and is crashing with this error:</p>

<pre><code>Java.Lang.RuntimeException: Unable to bind to service md5037fca43706e0b812912372d4076c895.WidgetService@3888bf9f with Intent { dat=intent: cmp=StimeApplication.StimeApplication/md5037fca43706e0b812912372d4076c895.WidgetService (has extras) }: java.lang.NullPointerException: Attempt to invoke interface method 'void android.widget.RemoteViewsService$RemoteViewsFactory.onCreate()' on a null object reference ---&gt; Java.Lang.NullPointerException: Attempt to invoke interface method 'void android.widget.RemoteViewsService$RemoteViewsFactory.onCreate()' on a null object reference
  at --- End of managed exception stack trace ---
  at java.lang.NullPointerException: Attempt to invoke interface method 'void android.widget.RemoteViewsService$RemoteViewsFactory.onCreate()' on a null object reference
  at at android.widget.RemoteViewsService.onBind(RemoteViewsService.java:243)
  at at android.app.ActivityThread.handleBindService(ActivityThread.java:2939)
  at at android.app.ActivityThread.access$1900(ActivityThread.java:169)
  at at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1511)
  at at android.os.Handler.dispatchMessage(Handler.java:111)
  at at android.os.Looper.loop(Looper.java:194)
  at at android.app.ActivityThread.main(ActivityThread.java:5552)
  at at java.lang.reflect.Method.invoke(Native Method)
  at at java.lang.reflect.Method.invoke(Method.java:372)
  at at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
  at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)
  --- End of inner exception stack trace ---
  at --- End of managed exception stack trace ---
  at java.lang.RuntimeException: Unable to bind to service md5037fca43706e0b812912372d4076c895.WidgetService@3888bf9f with Intent { dat=intent: cmp=StimeApplication.StimeApplication/md5037fca43706e0b812912372d4076c895.WidgetService (has extras) }: java.lang.NullPointerException: Attempt to invoke interface method 'void android.widget.RemoteViewsService$RemoteViewsFactory.onCreate()' on a null object reference
  at at android.app.ActivityThread.handleBindService(ActivityThread.java:2952)
  at at android.app.ActivityThread.access$1900(ActivityThread.java:169)
  at at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1511)
  at at android.os.Handler.dispatchMessage(Handler.java:111)
  at at android.os.Looper.loop(Looper.java:194)
  at at android.app.ActivityThread.main(ActivityThread.java:5552)
  at at java.lang.reflect.Method.invoke(Native Method)
  at at java.lang.reflect.Method.invoke(Method.java:372)
  at at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
  at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)
  at Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'void android.widget.RemoteViewsService$RemoteViewsFactory.onCreate()' on a null object reference
  at at android.widget.RemoteViewsService.onBind(RemoteViewsService.java:243)
  at at android.app.ActivityThread.handleBindService(ActivityThread.java:2939)
  at ... 9 more
</code></pre>

<p>I hope someone can help me, i have no idea what to search and where this error Comes from.</p>