в чем разница между Parcelable и сериализацией, используемой в Android
Я хочу знать точно,
whether should I usedparcelable
or serialization
technique
for sending data from one activity to other?
is it compulsory to
use one of them for sending data from one to other?
when should I use them?
and the exact difference between them and performance
of both of them in java aspects.
Заранее спасибо.
public class GetSetClass implements Serializable {
private int dt = 10;
/** pass any object, drwabale */
public int getDt() {
return dt;
}
public void setDt(int dt) {
this.dt = dt;
}
}