title: Getting android.app.RemoteServiceException: Bad notification posted from package in custom notification
body: <p>I am trying to create a custom notification using the remote view.</p>
  
  <p>Steps Followed:<br>
  1. Created a layout and placed in the res/layout folder<br>
  2. Extended the RemoteViews class and implemented some helper methods.<br>
  3. Instantiated an object of the Extended class and I am supplying this as Content by using setContent() in the Notification.Builder.<br>
  4. Cached the instantiated Extended class.</p>
  
  <p>Now most of the times when I do an operation even before supplying the extended class object to the Notification.Builder its crashing. </p>
  
  <pre><code>E/AndroidRuntime(10194): android.app.RemoteServiceException: Bad notification posted from
  package com.motorolasolutions.ptt.mpttclient: Couldn't expand RemoteViews for: 
  StatusBarNotification
  </code></pre>
  
  <p>I have tried following functions</p>
  
  <pre><code>setBoolean(R.id.textview1, "setEnabled", false);
  </code></pre>
  
  <p>Please let me know how can I call the functions on the remote view.  </p>
  
  <p>I tried so many functions which have @android.view.RemotableViewMethod tag in the source code of Android.</p>