I need to store this object into the internal storage memory of the phone, and i have the
change this
out = new ObjectOutputStream(new FileOutputStream("appSaveState.data"));
with
File outFile = new File(Environment.getExternalStorageDirectory(), "appSaveState.data");
out = new ObjectOutputStream(new FileOutputStream(outFile));
as correctly pointed out by @e-x, the file will not be removed clearing application's data or uninstalling the app