Skipping the connection phase in the tris example
Posted: 21 Oct 2014, 05:39
Hi guys,
How can I skip the first screen (the connection) in the Tris example in Android, and do it in the code automatically? I know it's for example purposes, but it doesn't make sense for the user to have to connect to a server. It should be done automatically.
I tried:
in TrisLobbyActivity.java, I added buttonLogin.performClick();
which works in that it skips the screen, but still shows it for a noticeable amount of time (almost a second). Can we do that without displaying it to the screen at all?
How can I skip the first screen (the connection) in the Tris example in Android, and do it in the code automatically? I know it's for example purposes, but it doesn't make sense for the user to have to connect to a server. It should be done automatically.
I tried:
in TrisLobbyActivity.java, I added buttonLogin.performClick();
which works in that it skips the screen, but still shows it for a noticeable amount of time (almost a second). Can we do that without displaying it to the screen at all?