Google Admob requires that I have to compile my project with API-13 or later. To be able to use admob sdk.
My application is meant for mobiles with api-8 or later.
Does it mean if I compile my app with Api-13 or later I have to abandon my app support for older phones before Api-13 ?
My understanding is that since admob requires minimum api-13 to compile , it means it calls functions which are not available on old phones, so I am confused that potentially It won’t be able to run my app for Api-8 to Api-12 and probably crash ?
Please advise me on this,
No. If you read the AdMob documentation, “The Google AdMob Ads SDK for Android requires a run-time of Android 1.5 or later (set android:minSdkVersion to at least 3 in your AndroidManifest.xml). This means you can develop with the latest version of the Android SDK and your app will still run on an earlier Android version (1.5 minimum).”
It conditionally “calls function which are not available on old phones”. This is fairly commonplace in Android development — you use
Build.VERSION.SDK_INTto determine if you are on a newer device and do one thing with newer APIs, but do something else on older devices.