Moto wrote:
> I'm wondering if I can specify on the manifest <uses-sdk
> android:minSdkVersion="3" /> and compile it as Android 1.6.
> 
> Initial issue is that I need android.os.Build.MANUFACTURER call is not
> available on android 1.5

You will need to either use reflection or conditional class loading to
deal with APIs newer than the minimum.

Here is an example of using reflection:

http://github.com/commonsguy/cw-android/tree/master/APIVersions/Tagger2/

Here is an example of using conditional class loading:

http://github.com/commonsguy/cw-advandroid/tree/master/Contacts/Spinners/

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

Android Consulting: http://commonsware.com/consulting

-- 
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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to