I am actually trying to add C2DM ability to the application which is 
possible only if the application's minSdkVersion is >= 8. I don't want to 
manually check my manifest file and then add C2DM feature while 
development. I would like to have my application check for the 
minSdkVersion and then behave accordingly (whether to enable C2DM or not)

Can you suggest a way?

Thanks,
Kamal

On Thursday, April 5, 2012 8:15:55 PM UTC+5:30, MagouyaWare wrote:
>
> I need to retrieve the minSdkVersion value from AndroidManifest.xml from a 
>> java class.
>>
> AFAIK there is no way to get that...
>
> I need to enable a flag based on its value.
>>
> What is the end result of what you are trying to acocmplish?  Perhaps we 
> can suggest some other ways to get similar behavior...
>
> Is there any way to do it? 
>>
> Not that I am aware of... At least not using the public API 
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Wed, Apr 4, 2012 at 10:24 AM, Kamal Kambe <[email protected]> wrote:
>
>> Hi,
>>
>> I need to retrieve the minSdkVersion value from AndroidManifest.xml from 
>> a java class. I need to enable a flag based on its value. Is there any way 
>> to do it? All I can get is targetSdkVersion from ApplicationInfo but not 
>> the minSdkVersion. 
>>
>> Thanks,
>> Kamal
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>

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

Reply via email to