Code example for StringBuilder

Methods: append, toString

0
        } 
         
        public class LocalBinder extends Binder {
            String getStatus() {
                WifiInfo wi = ((WifiManager)getSystemService(WIFI_SERVICE)).getConnectionInfo();
                return "This behavior will continue in the background. This window only starts and monitors it.\n\nNetwork: " + wi.getSSID() + "\nSignal strength: " + (100 + wi.getRssi()) + "%\n\nStatus: " + status; // i know this isn't a percentage
            } 
        } 
    } 
     
    private RefreshHandler mRedrawHandler = new RefreshHandler();
     
    class RefreshHandler extends Handler {
        @Override 
        public void handleMessage(Message msg) {
            this.removeMessages(0);
            if(!running)
                return; 
            if(mService == null)
                ((TextView)ufw_login.this.findViewById(R.id.text)).setText("service not connected?");
            else