common: bugfix, open ObjectOutputStream before ObjectInputStream
android: use GenericStream for tcp handling