Well I didn't have this supporting 1.5 because it was causing failures when Dalvik tried to load some classes. You'll want to carefully test anything you do.
On Sun, Jun 5, 2011 at 5:14 PM, Peli <[email protected]> wrote: > Interestingly it seems to work (at least in the 1.1 and 1.5 > emulators). > The compatibility library still contains references to AsyncTask which > is not available until 1.6, so it does not compile with 1.1 or 1.5, > but once compiled with 1.6 or higher it seems to load fine in 1.1 and > 1.5. > > Market statistics show that we have more than 8% of users running 1.5 > for OI Shopping List, so we don't want to abandon them yet. (3.0 users > are <1% currently). > > Peli > > On 5 Jun., 21:14, Dianne Hackborn <[email protected]> wrote: > > Making it work on 1.5 and earlier is not actually so simple, because of > the > > way the Dalvik class loader works on those versions. The approach the > > library uses a lot for being able to call newer functions (having the > calls > > in a separate class that is only used if running on the appropriate > version) > > breaks prior to 1.6 because Dalvik will fail loading the app's dex file > if > > it has any such references. > > > > Honestly I don't think messing with 1.5 or earlier is at all worth the > time. > > > > > > > > > > > > On Sun, Jun 5, 2011 at 8:37 AM, Peli <[email protected]> wrote: > > > I've modified the "Android Compatibility support v4, revision > > > 2" (http://developer.android.com/sdk/compatibility-library.html) > > > slightly so that it can be used on Android 1.5 or Android 1.1 as well. > > > The only modification so far was to support Build.VERSION.SDK_INT on > > > versions earlier than 1.6. > > > > > The aim is not to port back all functionality, but at least not to let > > > an existing application crash in Android 1.1 or Android 1.5 if one > > > wants to use Fragments or other Honeycomb features. > > > > > This is work in progress, and we have not released a jar file yet. So > > > far it is only available via SVN as an Android Library Project that > > > can be included in any other project: > > > > >http://code.google.com/p/openintents/source/browse/#svn%2Ftrunk%2Fcom. > .. > > > > > Feel free to use this in your projects, but beware that most of the > > > functions may actually not yet be compatible with Android 1.1 or > > > Android 1.5 (we only fixed what we needed so far). Feedback and > > > patches are welcome, to make this even more useful. > > > > > Peli > > >www.openintents.org > > > > > -- > > > 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 > > > > -- > > Dianne Hackborn > > Android framework engineer > > [email protected] > > > > Note: please don't send private questions to me, as I don't have time to > > provide private support, and so won't reply to such e-mails. All such > > questions should be posted on public forums, where I and others can see > and > > answer them. > > -- > 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 > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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

