Intent extra gets cleared out from unknown reason
问题 I have Activity A which starts Activity B with following code: Intent intent = new Intent(this, B.class); intent.putExtra("foo", new MySerializableObject()); startActivity(intent); In B "foo" is received correctly and then I create PendingIntent to start itself after some time, you can think about it as some alarm clock app. Anyway the mysterious thing is that when I schedule this intent in following way: Intent intent = new Intent(context, B.class); intent.putExtra("bar", true);