Note that there are some explanatory texts on larger screens.

plurals
  1. POBadParcelableException: unmarshalling: com.android.mail.providers.Account
    primarykey
    data
    text
    <p>I know that this a looks duplicate thread. But, I could not find the solution for this..</p> <p>I have a application in which I try to a Intent filter for </p> <pre><code>android.intent.action.VIEW </code></pre> <p>When I touch on a email-id, it opens my activity. But throws <code>BadParcelableException: unmarshalling: com.android.mail.providers.Account</code>.</p> <p>I tried setting the ClassLoader to the bundle. But did not work.</p> <pre><code>Bundle bundle = getIntent().getExtras() ; bundle.setClassLoader(getClassLoader()) ; </code></pre> <p>As per the other posts they just say <code>getClass().getClassLoader()</code>.</p> <p>My Question is what should be the value for class loader? </p> <p>Kindly, point me to the right direction.</p> <p>Thanks in advance.</p> <p><strong>Stack trace:</strong></p> <pre><code>android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.android.mail.providers.Account at android.os.Parcel.readParcelable(Parcel.java:2077) at android.os.Parcel.readValue(Parcel.java:1965) at android.os.Parcel.readMapInternal(Parcel.java:2226) at android.os.Bundle.unparcel(Bundle.java:223) at android.os.Bundle.getBoolean(Bundle.java:802) at android.content.Intent.getBooleanExtra(Intent.java:4354) at com.example.activities.HandleView.access$0(SourceFile:225) at com.example.activities.HandleView$1.handleMessage(SourceFile:1010) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:153) at android.app.ActivityThread.main(ActivityThread.java:5297) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) at dalvik.system.NativeStart.main(Native Method) </code></pre> <p><strong>Intent Filter:</strong></p> <pre><code>&lt;activity android:name=".activities.HandleView" android:screenOrientation="portrait" android:windowSoftInputMode="stateVisible|adjustResize" &gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.VIEW" /&gt; &lt;action android:name="android.intent.action.SENDTO" /&gt; &lt;data android:scheme="mailto" /&gt; &lt;category android:name="android.intent.category.DEFAULT" /&gt; &lt;category android:name="android.intent.category.BROWSABLE" /&gt; &lt;/intent-filter&gt; &lt;intent-filter android:label="@string/app_name" &gt; &lt;action android:name="android.intent.action.SEND" /&gt; &lt;data android:mimeType="*/*" /&gt; &lt;category android:name="android.intent.category.DEFAULT" /&gt; &lt;/intent-filter&gt; &lt;intent-filter android:label="@string/app_name" &gt; &lt;action android:name="android.intent.action.SEND_MULTIPLE" /&gt; &lt;data android:mimeType="*/*" /&gt; &lt;category android:name="android.intent.category.DEFAULT" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload