How to show boolean values on android device?
<p>I am new to android programming. I want to show only true values of an array to android application. I have an input box, when you enter something into that and click on send. It goes to new page and shows the entered message, I want to show true values of boolean array into that page along with entered name. I am stuck and I am not able to find any solution.</p>

<pre><code>//enter code here

        boolean arrBool[] = new boolean[4];
        arrBool[0] = false;
        arrBool[1] = true;
        arrBool[2] = false;
        arrBool[3] = true;

        Intent i = new Intent(this, DisplayMessageActivity.class);
        for (int t=0; t&lt;arrBool.length; t++) {
            if(arrBool[t]==true)
                i.putExtra(EXTRA_MESSAGE, arrBool);
        }
        startActivity(i);
</code></pre>
