User:Kevin
What can I say. OK plagarism reins: case MENU_CONNECTION: builder = new AlertDialog.Builder(this); builder.setTitle("Enter server name or ip address."); final EditText input = new EditText(this); input.setText(server); builder.setView(input); builder.setPositiveButton("Ok", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { String value = input.getText().toString().trim(); Log.i("Server",value); update.close(); mode=connection.getMode(); frequency=connection.getFrequency(); filterLow=connection.getFilterLow(); filterHigh=connection.getFilterHigh(); connection.close(); server=value; connection = new Connection(server, BASE_PORT + receiver,width); connection.setSpectrumView(spectrumView); connection.connect(); connection.start(); connection.setFrequency(frequency); connection.setMode(mode); connection.setFilter(filterLow, filterHigh); connection.setGain(gain); connection.setAGC(agc); update=new Update(connection); spectrumView.setConnection(connection); update.setFps(fps); update.start(); setTitle("aHPSDR: "+server+" (rx"+receiver+")"); dialog.dismiss(); } }); builder.show();