一、思路
1.創建BundleMessage類實作Parcelable
2.實作CREATOR和describeContents(),writeToParcel()兩個介面方法
3.實作marshall() 和unmarshall()資料轉化的方法
4.定義內部私有變數Bundle和flags
5.完成get和put方法
6.測驗
二、具體實作
package com.common.smartthank.util;
import android.os.Bundle;
import android.os.Parcel;
import android.os
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/239072.html
標籤:其他
上一篇:GreenDAO的簡單使用
