Classe introuvable lors de unmarshalling lors du passage de Parcelable par Messager à distance service

J'ai un Parcelable objet que j'utilise pour passer d'une Activité de service à distance. Lorsque je passe à l'aide de AIDL interface, tout ce qui sonne bien.

Récemment, j'essaie de passer à travers Messenger de l'Activité.

//TEST TEST TEST!
StockInfo stockInfo0 = new StockInfo(Code.newInstance("code0"), Symbol.newInstance("symbol0"));
StockInfo stockInfo1 = new StockInfo(Code.newInstance("code1"), Symbol.newInstance("symbol1"));
StockInfo stockInfo2 = new StockInfo(Code.newInstance("code2"), Symbol.newInstance("symbol2"));
List<StockInfo> stockInfos = new ArrayList<StockInfo>();
stockInfos.add(stockInfo0);
stockInfos.add(stockInfo1);
stockInfos.add(stockInfo2);
StockInfosEx stockInfosEx = new StockInfosEx(stockInfos, "abc");
msg.obj = stockInfosEx;

try {
    mService.send(msg);
} catch (RemoteException e) {
    //TODO Auto-generated catch block
    e.printStackTrace();
}

Je suis l'exception suivante en service à distance.

02-21 22:55:16.546: E/Colis(8365): Classe introuvable lors de l'
unmarshalling: com.exemple.testonmessenger.StockInfosEx, e:
java.lang.ClassNotFoundException:
com.exemple.testonmessenger.StockInfosEx

Je me demandais, ce qui peut se tromper entre les deux? Voici mon Parcelable objet.

public class StockInfosEx implements Parcelable {
    public final List<StockInfo> stockInfos;
    public final String searchedString;

    public StockInfosEx(List<StockInfo> stockInfos, String searchedString) {
        this.stockInfos = stockInfos;
        this.searchedString = searchedString;
    }

    ////////////////////////////////////////////////////////////////////////////
    //Handling Parcelable nicely.

    public static final Parcelable.Creator<StockInfosEx> CREATOR = new Parcelable.Creator<StockInfosEx>() {
        public StockInfosEx createFromParcel(Parcel in) {
            return new StockInfosEx(in);
        }

        public StockInfosEx[] newArray(int size) {
            return new StockInfosEx[size];
        }
    };

    private StockInfosEx(Parcel in) {
        stockInfos = new ArrayList<StockInfo>();
        in.readTypedList(stockInfos, StockInfo.CREATOR);
        searchedString = in.readString();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int flags) {
        parcel.writeTypedList(stockInfos);
        parcel.writeString(searchedString);
    }

    //Handling Parcelable nicely.    
    ////////////////////////////////////////////////////////////////////////////       
}

Pour obtenir le code source complet, merci de télécharger à partir de https://www.dropbox.com/s/n69yuhddpb8vedz/testonmessenger.zip

est StockInfo parcelable ?
oui. j'ai posté le code source complet, juste au cas où vous êtes intéressé. ce qui me font douter de moi est l'ensemble de la parcelable est réalisable en vertu de l'AIDL, mais pas Messenger.
aussi, le post stacktrace
C'est la seule trace de la pile de logcat. Croyez-moi. Il est à seulement 1 ligne.
je ne vous crois pas, désolé.

OriginalL'auteur Cheok Yan Cheng | 2013-02-21