What is the reason "Syntax error, insert" Finally "to complete the TryStatement"

I use eclipse to create an Android application that receives a list of all currently displayed applications on the phone, but I get an error message that I have never seen before. My code looks correct, but in one of the "}" im brackets that get the error "Syntax error, insert" Finally "to complete the TryStatement, does anyone know how to solve this error?

Thanks.

+7
source share
1 answer

You need to either have a catch clause or a finally clause to accompany your attempt:

try { // ... something dangerous ... } catch(IOException e) { // ... handle errors ... } finally { // ... cleanup that will execute whether or not an error occurred ... } 
+11
source

All Articles