public void onServerStart ( String ip ) { closeDialog ( ) ; mBtnStart . setVisibility ( View . GONE ) ; mBtnStop . setVisibility ( View . VISIBLE ) ; mBtnBrowser . setVisibility ( View . VISIBLE ) ; if ( ! TextUtils . isEmpty ( ip ) ) { List < String > addressList = new LinkedList <> ( ) ; mRootUrl = "http://" + ip + ":8080/" ; addressList . add ( mRootUrl ) ; addressList . add ( "http://" + ip + ":8080/login.html" ) ; mTvMessage . setText ( TextUtils . join ( "\n" , addressList ) ) ; } else { mRootUrl = null ; mTvMessage . setText ( R . string . server_ip_error ) ; } }
Start notify .