Monday, April 9, 2012

Re: [android-developers] retrieve minSdkVersion from manifest file programmatically

Hi Mark,

Thanks a lot. I interpreted it in a wrong way. 

Kamal

On Friday, April 6, 2012 7:18:16 PM UTC+5:30, Mark Murphy (a Commons Guy) wrote:
On Fri, Apr 6, 2012 at 9:42 AM, Kamal Kambe <kkambe@kiwiup.com> wrote:
> I am actually trying to add C2DM ability to the application which is
> possible only if the application's minSdkVersion is >= 8.

No. It is only possible if the *device* is *running* API Level 8 or
higher. minSdkVersion has nothing to do with it. Use
android.os.Build.VERSION.SDK_INT to determine what API level the
device is running.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 4.1 Available!

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment