After installing the newest ADT & SDK of Android to support API 18, I've noticed that all of the API demos are now considered "legacy".
Here's a screenshot:
How come?
I've noticed that even though they are considered "legacy", they contain some things that do belong to API 18, for example this attribute that was found on the manifest:
android:theme="@android:style/Theme.Holo.NoActionBar.Overscan"
It's also weird that this is the only thing Lint warns me about when having minSdk to be lower than API 18 - this can't be the only new thing on API 18 that the demos contain, can it?
What is going on with it, and will we have a different set of samples?
adt-dev
Google Group. – Lixiviumlegacy
notation ever for any release of Android API, including Level 19. Did you install ADT & SDK over an existing directory or into a new directory? Perhaps some files were left over from a previous installation. – Zafferlegacy
notation, so I stand corrected. This is to do with the version of the API you selected when you create / load an Android project. So, if you select a target of 17 (Android 4.2.2) or earlier, you'll will not see thelegacy
notation. Anything from API 18 onwards, you will see it. What it is is that some of the sample Android projects were written some time ago, and Google may not have updated them in line with the latest API levels. I would just ignore thelegacy
notation and continue. – Zafferlegacy
here can mean one or two things: 1) There are methods contained in a sample Android project which are now deprecated in API 19 (the APIDemos project has a few of them e.g. Notification(int, CharSequence, long)), or 2) The notation acts as a visual cue to alert [new] Android developers that a given project may contain "legacy" codes i.e. support earlier versions of Android. This notation won't cause you any grief, so I would ignore it and continue development. – Zaffer