You need to compile it under 2.*, but it will still run under 1.5. On Tue, Nov 16, 2010 at 11:24 AM, pandre <[email protected]> wrote:
> Hi everyone, > > I would like to know what I have to do in order to have the Business > Card Sample in SDK 3 (android 1.5), because it uses some stuff that > does not compile in android 1.5, example: > - if (sdkVersion < Build.VERSION_CODES.ECLAIR)... > -import android.provider.ContactsContract.Contacts; > -import android.provider.ContactsContract.CommonDataKinds.Phone; > > What is the best way to have the application compiling in eclipse and > be able to run in android 2.0 and 1.5? > > -- > 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]<android-developers%[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

