final boolean check=Build.VERSION.SDK_INT<Build.VERSION_CODES.LOLLIPOP;
This gives an error. I know the parameters aren't mentioned specifically, but they are android.support.v7.widget.Toolbar and android.widget.Toolbar accordingly as specified in layouts I created.
However, it complains that the API level may not be high enough.
Obviously I check the SDK version level and even store it in a final boolean for good form. Its value can't even be changed.
Why won't Android Studio accept this?
How to store Build.Version Comparison in final boolean
Post a Reply
|Oldest Newest Rating|
Java / Android Development
Very popular language used to create desktop applications, website applets, and Android apps.
|Bucky Roberts Administrator|