projects/syncpingpong/PingPongApp/app/src/main/java/io/v/pingpongapp/MainActivity.java
// This is the only way we're allowed to change the UI from this Thread.
This is the only way we're allowed to change the UI from this Thread.
This is the only way we ' re allowed to change the UI from this Thread .
private void helpUpdateText(final String t) {
                    view.post(new Runnable() {
                        @Override
                        public void run() {
                            updateText(t);
                        }
                    });
                }
private void helpUpdateText ( final String t ) { view . post ( new Runnable ( ) { @ Override public void run ( ) { updateText ( t ) ; } } ) ; }
This is the only way we're allowed to change the UI from this Thread.
This is the only way we ' re allowed to change the UI from this Thread .