projects/syncpingpong/PingPongApp/app/src/main/java/io/v/pingpongapp/MainActivity.java
// Callback (from button press). If not pressed yet, the proxy will be added to the listen spec.
Callback (from button press). If not pressed yet, the proxy will be added to the listen spec.
Callback ( from button press ) . If not pressed yet the proxy will be added to the listen spec .
public void useProxy(View view) {
        if (!mUsingProxy) {
            Log.d(TAG, "Using the proxy!");
            try {
                mBaseContext = V.withListenSpec(mBaseContext,
                        V.getListenSpec(mBaseContext).withProxy("proxy"));
                mUsingProxy = true;
                setPreTestText();
                ((Button) findViewById(R.id.useproxybutton)).setText(R.string.using_proxy);
            } catch (final VException e) {
                Log.e(TAG, "Use proxy failed", e);
            }
        }
    }
public void useProxy ( View view ) { if ( ! mUsingProxy ) { Log . d ( TAG , "Using the proxy!" ) ; try { mBaseContext = V . withListenSpec ( mBaseContext , V . getListenSpec ( mBaseContext ) . withProxy ( "proxy" ) ) ; mUsingProxy = true ; setPreTestText ( ) ; ( ( Button ) findViewById ( R . id . useproxybutton ) ) . setText ( R . string . using_proxy ) ; } catch ( final VException e ) { Log . e ( TAG , "Use proxy failed" , e ) ; } } }
Callback (from button press).
Callback ( from button press ) .
// If we don't proxy, we can't communicate across networks.