Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can an Android application or activity call APIs in higher API levels?

Tags:

java

android

Is it possible for an Android application with a given minimum API level (say 8 "Froyo") to conditionally use APIs that are only in higher API levels (e.g. the NFC APIs in level 10) for example by detecting for the presence of the API or API level at run-time?

Thanks.

like image 776
Richard Lawler Avatar asked Feb 12 '11 19:02

Richard Lawler


People also ask

What is the minimum API level that the Android application supports?

Starting November 1, 2022 if your app doesn't target API level 30 or above, new users with newer Android OS versions won't be able to discover or install your app on Google Play.

Can Android app make REST API call?

Easiest Way To Make REST API calls on Android Beginner Friendly with one line of Code (No Retrofit Needed) If you are an experienced Android Developer or just a beginner making web request or API calls is has a big part to play in applications that read/write data over the internet.


1 Answers

Yes, using reflection. Here's an article that shows how to do this on Android:

  • Backwards Compatibility for Applications Backward compatibility for Android applications
like image 81
Roman Nurik Avatar answered Sep 30 '22 03:09

Roman Nurik