Java tutorial
//package com.java2s; /** ** Copyright (C) SAS Institute, All rights reserved. ** General Public License: http://www.opensource.org/licenses/gpl-license.php **/ import android.os.Bundle; import android.os.Parcelable; public class Main { /** * key used to extract from Bundle an boolean value, which indicates if this parcel<br> * is sent again or not by 'message-sender'.<br> * it is used when transferring a message by a few parcels<br> */ public static final String BUNDLE_SMALL_RESENT_PARCEL = "smallparcelresent"; public static boolean getParcelableResentParcelFromSmallParcel(Parcelable parcelable) { Bundle bundle = (Bundle) parcelable; return bundle.getBoolean(BUNDLE_SMALL_RESENT_PARCEL); } }