+++ /dev/null
-package com.example.furt.myapplication;
-
-import android.os.Parcel;
-import android.os.Parcelable;
-
-import java.util.ArrayList;
-import java.util.List;
-
-// simple class that just has one member property as an example
-public class ServerData implements Parcelable {
- private static List<String> L;
-
- ServerData(List<String> List)
- {
- L=List;
- }
- /* everything below here is for implementing Parcelable */
-
- // 99.9% of the time you can just ignore this
- public int describeContents() {
- return 0;
- }
-
- // write your object's data to the passed-in Parcel
- public void writeToParcel(Parcel out, int flags) {
- out.writeList(L);
- }
-
- // this is used to regenerate your object. All Parcelables must have a CREATOR that implements these two methods
- public static final Creator<ServerData> CREATOR = new Creator<ServerData>() {
- public ServerData createFromParcel(Parcel in) {
- return new ServerData(L);
- }
-
- public ServerData[] newArray(int size) {
- return new ServerData[size];
- }
- };
-
-}