1 package com.example.furt.myapplication;
3 import android.os.Parcel;
4 import android.os.Parcelable;
6 import java.util.ArrayList;
9 // simple class that just has one member property as an example
10 public class ServerData implements Parcelable {
11 private static List<String> L;
13 ServerData(List<String> List)
17 /* everything below here is for implementing Parcelable */
19 // 99.9% of the time you can just ignore this
20 public int describeContents() {
24 // write your object's data to the passed-in Parcel
25 public void writeToParcel(Parcel out, int flags) {
29 // this is used to regenerate your object. All Parcelables must have a CREATOR that implements these two methods
30 public static final Creator<ServerData> CREATOR = new Creator<ServerData>() {
31 public ServerData createFromParcel(Parcel in) {
32 return new ServerData(L);
35 public ServerData[] newArray(int size) {
36 return new ServerData[size];