title: AndroidRuntime error : Parcel unable to marshal value
body: <p>I have coded a class like this.but when i'm using this there is runtime error is occured in  this overided method</p>
  
  <pre><code> @Override
   public void writeToParcel(Parcel dest, int flags) {
       dest.writeValue(synclistener);
   }
  </code></pre>
  
  <p>Myclass</p>
  
  <pre><code>public class SyncListenEntity implements Parcelable {
      private LocationServiceProvider.LocationSyncNotifier synclistener;
  
      public LocationServiceProvider.LocationSyncNotifier getSynclistener() {
          return synclistener;
      }
  
      public void setSynclistener(LocationServiceProvider.LocationSyncNotifier synclistener) {
          this.synclistener = synclistener;
      }
  
      public SyncListenEntity() {
      }
  
      protected SyncListenEntity(Parcel in) {
          synclistener = (LocationServiceProvider.LocationSyncNotifier) in.readValue(LocationServiceProvider.LocationSyncNotifier.class.getClassLoader());
      }
  
      @Override
      public int describeContents() {
          return 0;
      }
  
      @Override
      public void writeToParcel(Parcel dest, int flags) {
          dest.writeValue(synclistener);
      }
  
  
      public static final Parcelable.Creator&lt;SyncListenEntity&gt; CREATOR = new Parcelable.Creator&lt;SyncListenEntity&gt;() {
          @Override
          public SyncListenEntity createFromParcel(Parcel in) {
              return new SyncListenEntity(in);
          }
  
          @Override
          public SyncListenEntity[] newArray(int size) {
              return new SyncListenEntity[size];
          }
      };
  }
  </code></pre>
  
  <p>LocationNotifier</p>
  
  <pre><code>public interface LocationNotifier {
       void onNewLocationArrived(Location loaction, String privider);
  }
  </code></pre>
  
  <p>Exception:</p>
  
  <pre><code>java.lang.RuntimeException: Parcel: unable to marshal value
  Caused by: java.lang.RuntimeException: Parcel: unable to marshal value
       com.library.gps.SyncListenEntity.writeToParcel(SyncListenEntity.java)
       android.app.ActivityManagerProxy.getIntentSender(ActivityManagerNative.java:3835‌​)
       com.library.gps.LocationServiceProvider.enableUserTrackingService(LocationServic‌​eProvider.java:64)
       com.ceylonlinux.multilac.activity.FrmHome.onCreate(FrmHome.java:365) 
  </code></pre>