I'm using eclipse to create an android application that gets a list of all the currently displayed apps on the phone but I am getting an error that I've never seen before. My code looks right but at one of the "}" brackets im getting the error "Syntax error, insert "Finally" to complete TryStatement", does anyone know how to solve this error?
Thank you.
You need to either have a "catch" clause or a "finally" to accompany your try:
try {
// ... something dangerous ...
} catch(IOException e) {
// ... handle errors ...
} finally {
// ... cleanup that will execute whether or not an error occurred ...
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With