is App Foreground
Return whether application is foreground.
Return
{@code true}: yes{@code false}: no
Return whether application is foreground.
Target APIs greater than 21 must hold {@code }
Return
{@code true}: yes{@code false}: no
Parameters
packageName
The name of the package.