Android BufferedReader instance cannot be resolved at finally trying to close it
<p>I have omitted irrelevant parts of the code:</p>

<pre><code>[...]
    try {
        URL url = new URL(updateUrl);
        BufferedReader input = new BufferedReader(new InputStreamReader(url.openStream()));
[...]
    } catch (MalformedURLException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } catch (IOException e) {
    } finally {
        input.close();
    }
[...]
</code></pre>

<p>The problem is that on the finally "input.close()" Eclipse says that "input cannot be resolved".</p>

<p>I think it may be an scope problem, but I have seen code from other guys and it has usually this same form, so I do not know why it is not working here.</p>

<p>Any hints?</p>

<p>Thanks a lot in advance,</p>
