Java console app emulation for Android