I have latlng list of geopoints
ArrayList<Route> arrayList
I am saving this by
SharedPreferences prefeMain = MainActivitybatchGrp1.this.getSharedPreferences("APPLICATION", Context.MODE_PRIVATE);
SharedPreferences.Editor editor = prefeMain.edit();
try {
Log.e("TASK","Success");
editor.putString("GROUPA", ObjectSerializer.serialize(arrayListLatLong));
} catch (IOException e) {
Log.e("TASK","Fail:: "+e);
e.printStackTrace();
}
editor.commit();
But it gives an IOException
java.io.NotSerializableException: com.directions.route.Route