How to print the result of a method in android
<p>I have a problem. I have a TextView, a TextEdit and a button:</p>

<pre><code>public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    final EditText TextEdit = (EditText) findViewById(R.id.TextEdit);  
    final TextView mix =(TextView) findViewById(R.id.mix);
    final Button button = (Button) findViewById(R.id.proces);
    button.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) {


            // Perform action when clicking 



        }
</code></pre>

<p>and a method:</p>

<pre><code>public String shuffle(String s) {  
            List&lt;String&gt; words = Arrays.asList(s.split(" "));  
            StringBuilder sb = new StringBuilder();  
            for (String w : words) {  
                 w = mixMe(w);  
                sb.append(w);  
                sb.append(" ");  
            }  
            return sb.toString().trim();  
        }  
</code></pre>

<p>I want to take the text from the EditText field, apply to it the shuffle method and after that print it with setText, and all of this in the OnClik method, but I'm not sure how to do that. Can anyone help me please. Thank you</p>
