photoItem.java
2.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
package com.example.dataextraction;
import android.graphics.Bitmap;
import android.os.Parcel;
import android.os.Parcelable;
public class photoItem implements Parcelable {
private int id;
private String latitude, longitude,title,displayName,type,date,path;
private byte bytes[];
private Bitmap bitmap;
public photoItem() {
latitude = null;
longitude = null;
}
public photoItem(Parcel in) {
this.id = in.readInt();
this.latitude = in.readString();
this.longitude = in.readString();
this.title = in.readString();
this.displayName = in.readString();
this.type = in.readString();
this.date = in.readString();
this.path = in.readString();
//this.bytes = in.createByteArray();
}
public String getLatitude(){
return latitude;
}
public String getLongitude(){
return longitude;
}
public String getTitle(){
return title;
}
public int getId(){
return id;
}
public String getDisplayName(){
return displayName;
}
public String getType(){
return type;
}
public String getDate(){
return date;
}
public String getPath() {
return path;
}
public byte[] getBytes(){
return bytes;
}
public Bitmap getBitmap(){
return bitmap;
}
public void setLatitude(String lat){
latitude = lat;
}
public void setLongitude(String longt){
longitude = longt;
}
public void setTitle(String _t){
title = _t;
}
public void setId(int _id){
id = _id;
}
public void setDisplayName(String name){
displayName = name;
}
public void setType(String _type){
type = _type;
}
public void setDate(String d){
date = d;
}
public void setPath(String p){
path = p;
}
public void setBytes(byte[] b){
bytes = b;
}
public void setBitmap(Bitmap b){
bitmap = b;
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this.id);
dest.writeString(this.latitude);
dest.writeString(this.longitude);
dest.writeString(this.title);
dest.writeString(this.displayName);
dest.writeString(this.type);
dest.writeString(this.date);
dest.writeString(this.path);
//dest.writeByteArray(this.bytes);
}
@SuppressWarnings("rawtypes")
public static final Creator CREATOR = new Creator() {
@Override
public photoItem createFromParcel(Parcel in) {
return new photoItem(in);
}
@Override
public photoItem[] newArray(int size) {
// TODO Auto-generated method stub
return new photoItem[size];
}
};
}