Android: Upgrading API for "Move to SD Card" option
I currently have an app that was built around the 1.6 API. It has begun t开发者_如何学Goo accrue size and currently is quite large. I was wondering if I upgrade to API 2.2, add: android:installLocation="auto"
to the manifest, but set <uses-sdk android:minSdkVersion="6" />
if I will lose users that have lower then 2.2. Currently 1.6 users account for less than 1% of users but 2.1 accounts for 10%. Losing 1.6 wouldn't be a problem but I don't think the benefit of using the SD card would outweigh losing 10% of my users.
Let me know what you think.
Thanks!
You won't lose the 1.6 users if you add android:installLocation="auto"
and set the min SDK to 6. You'll have to build with the 2.2 SDK. When you are adding new code you have to make sure that you use 1.6 methods, otherwise it will build without errors and crash on the devices with Android Version smaller than 2.2.
Setting installLocation
will only affect users who have versions that support that setting: folks from earlier revisions will still be able to install the software.
精彩评论