Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are the API demos considered as "legacy", as of API 18?

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:

Enter image description here

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?

like image 263
android developer Avatar asked Sep 22 '13 12:09

android developer


People also ask

What are the 3 types of API consumers?

Today, there are three categories of API protocols or architectures: REST, RPC and SOAP. These may be dubbed "formats," each with unique characteristics and tradeoffs and employed for different purposes.

What is the most vital role played by API in this modern era?

The Purpose of APIs By providing the building blocks for an application function, APIs also make it easier to develop a program and thus improve developer efficiency. For example, with a small amount of coding, developers can make repetitive, complex processes highly reusable.

Why is API so important?

APIs are needed to bring applications together in order to perform a designed function built around sharing data and executing pre-defined processes. They work as the middle man, allowing developers to build new programmatic interactions between the various applications people and businesses use on a daily basis.

What are the benefits of offering an API?

In general, APIs improve customization by allowing developers to access and use data and functionality from other applications. In this way, developers can customize the website or app content to tailor it to the needs of users and visitors, making the user experience more flexible and personalized.


1 Answers

The non-legacy projects all have a build.gradle file, that you can simply open in Android Studio*. The legacy projects don't have a build.gradle file and if you want to open them in Android Studio you need to either go through "create new project over existing sources" or android update project before you're good to go.

*) not entirely true: some of them point to outdated versions of the Android plugin and you need to tweak the project settings first.

like image 117
Barend Avatar answered Sep 30 '22 09:09

Barend