android: Encode connection settings as single Java string argument