Finally everything works perfectly, with some tweaking around not serializable Android graphic classes