I am reading the iptables log output directly from the console and I need to clear the results a little bit.
Currently I am getting:
SRC=192.168.1.1 PROTO=UDP DPT=12638
SRC=192.168.1.1 PROTO=UDP DPT=5636
SRC=192.168.1.1 PROTO=UDP DPT=8861
SRC=192.168.1.1 PROTO=UDP DPT=15114
I am trying to remove SRC= , PROTO= and DPT=...
String results=a.toString();
results.replace("SRC="," ");
results.replace("PROTO="," ");
results.replace("DF TYPE=3"," ");
tv=(TextView)findViewById(R.id.tv1);
tv.setText("results:\n"+results);
And of course nothing is removed :D