Note that there are some explanatory texts on larger screens.

plurals
  1. POProblem running applications on Android 2.0 compiled on Android SDK 2.3
    text
    copied!<p>There seems to be a breaking change in SDK 2.3 that causes applications compiled on it to fail to work on Android 2.0 devices. (Although Android 2.0 is officially gone, I'm unfortunately stuck with a bunch of Motorola Milestones that I got from Expansys which haven't gotten OTR updates yet). </p> <p>It seems to be an issue with resources, exactly like <a href="https://stackoverflow.com/questions/2923823/android-2-2-sdk-breaks-compatibility-with-older-phones">the one mentioned here</a>, however on a 2.0 device instead of a 1.6 or earlier device. I can put all the resources in <code>/res/drawable/</code>, however I want the hdpi versions to appear instead of the mdpi versions (which I believe is the default for <code>/res/drawable/</code>). </p> <p>I figured I could just use an older copy of the SDK (the 2.2 SDK was able to make apks that my Milestones were happy with), but I can't seem to find a download link for it anymore.</p> <p>Are there any suggestions on how I can get my hdpi graphics on a 2.0 device?</p> <p>(In parallel, I'm attempting to contact Motorola and get the devices upgraded via OTR. Unfortunately, many of them are deployed in the field and can't be updated via USB).</p> <h1>Steps to reproduce</h1> <ol> <li>Install Android SDK 2.3</li> <li>In Eclipse, create a new Android project. Set target to 1.6 or higher.</li> <li>Modify the default <code>main.xml</code> to add: <code>&lt;ImageView android:src="@drawable/icon" android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt;</code> somewhere.</li> <li>Build the example, then launch with an Android 2.0 VM. </li> </ol> <h2>expected results</h2> <p>5: app will load. Icon may or may not appear depending on <code>main.xml</code>.</p> <h2>actual results</h2> <p>5: app crashes on start, see <a href="https://stackoverflow.com/questions/2923823/android-2-2-sdk-breaks-compatibility-with-older-phones">the aforementioned question</a> for the approximate stacktrace.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload