X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=mainActivity%2Fsrc%2Fcom%2Fexample%2Ffurt%2Fmyapplication%2FServerData.java;fp=mainActivity%2Fsrc%2Fcom%2Fexample%2Ffurt%2Fmyapplication%2FServerData.java;h=2466f27e8798967de6cad4a086930a21e150f11d;hb=92c1b7c5e38b8d6ffbeffb2c515bb99149841803;hp=0000000000000000000000000000000000000000;hpb=71021eb632e1429274a66cf4344e107b9c5fb0d5;p=logicplayer.git diff --git a/mainActivity/src/com/example/furt/myapplication/ServerData.java b/mainActivity/src/com/example/furt/myapplication/ServerData.java new file mode 100755 index 0000000..2466f27 --- /dev/null +++ b/mainActivity/src/com/example/furt/myapplication/ServerData.java @@ -0,0 +1,40 @@ +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 L; + + ServerData(List 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 CREATOR = new Creator() { + public ServerData createFromParcel(Parcel in) { + return new ServerData(L); + } + + public ServerData[] newArray(int size) { + return new ServerData[size]; + } + }; + +}