Print an integer to the screen from the Activity
<p>I'm trying to connect to a FTP-server. And I want a confirmation that I am connected.</p>

<p>This is my code:</p>

<pre><code>package no.ftptesting.oversikt;

import java.io.IOException;
import java.net.SocketException;

import android.app.Activity;
import android.os.Bundle;
import org.apache.commons.net.ftp.FTPClient;

public class ftptestingActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        FTPClient ftp;

    ftp = new FTPClient();
    try {
        int reply;
        ftp.connect("server",21);
        System.out.println("Connected.");

        reply = ftp.getReplyCode();

    } catch (SocketException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }

}
</code></pre>

<p>I want to print out a confirmation and the reply-integer on the screen. How can I do this?</p>
