Skip to content

try-with-resources not supported below API 19 #2

@gautamw

Description

@gautamw

I noticed that a few of the classes use try-with-resources blocks, which are not supported below API 19. However, the minimum SDK in the manifest is listed as 9.

It seems that try-with-resources "mostly work" down to API 15.
See: https://code.google.com/p/android/issues/detail?id=73483)

I haven't heard of anyone successfully using try-with-resources below API 14, and the support below 19 doesn't appear to be guaranteed. Is there a reason for using try-with-resources in this codebase other than convenience?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions