accessing views from a custom title bar in a thread causing null exceptions
<p>i have this fatty fat upload i do (relative to mobile devices). i do this in a thread so that the rest of the device is accessible. in that thread i am accessing a view inside of my custom title. here is the thread:</p>

<pre><code>    private OnClickListener send = new OnClickListener() {
        public void onClick(View v) {

            new Thread(new Runnable() {
    public void run() {
        _showView(R.id.progressBar1, true);
        AmazonS3Client s3 = new AmazonS3Client(
                new BasicAWSCredentials("abc",
                        "123"));

        for(Video v : video.getVideos()) {
            s3.putObject(
                    "bucket",
                    "remote_path"
                    new File("some_file");
        }
        _showView(R.id.progressBar1, false);
    }

}).start();
        }
    };


    private void _showView(int resourceId, boolean show) {
        if (show) {
            findViewById(resourceId).setVisibility(View.VISIBLE);
        } else {
            findViewById(resourceId).setVisibility(View.GONE);
        }
    }
</code></pre>

<p>how can i access the views of the custom title bar?</p>
