android - How to use higher sdk if needed else use lower -


i'm developing android sms app. using 2.2 api , needs stay way.

with new kitkat framework send/receive sms messages got problem know if use kitkat sms or lower api sms framework want able use lower sdk time except times when device kitkat , use kitkat api instead.

i saw solution use android.os package check kind of os u got if write in class kitkat sms functions , wouldn't make app 4.4 api?

thanks headds up

while creating project should target lowest api level possible. because if not using kitkat features should not target kitkat. because people using gingerbread (2.3–2.3.7), honeycomb (3.0–3.2.6), ice cream sandwich (4.0–4.0.4), jelly bean (4.1–4.3.1) not able application though runs fine on devices.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -