How to stay backwards and forwards compatible - targetSDKVersion, hdpi, minSDKVersion?

by Dianne Hackborn » Sat, 17 Apr 2010 06:32:37 GMT


Sponsored Links
 



Yes they will get them.  This specifies the minimum platform version the
resource is for.  (Note prior to 2.0 there was a bug where it was an exact
match, but that was fixed so you can count on -v4 and above working
correctly.)



It turns off the compatibility code for older applications that were not
written with 1.6 and later features in mind.  If you have tested against the
targetSdkVersion you have told the system you support, you will be fine.



You do if you want the system to run your app as well as possible on SDK 4
or later.



You can do that if you want.  It is up to you.  If you aren't using newer
APIs, it is not required.



targetSdkVersion should not impact that.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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.

--



How to stay backwards and forwards compatible - targetSDKVersion, hdpi, minSDKVersion?

by Matt Kanninen » Sat, 17 Apr 2010 09:33:48 GMT


 


The worst bug I've had so far in Android development was an out of
memory that showed up when I used targetSdkVersion="X".  It took quite
awhile to figure out that was the culprit, and when I removed it I
didn't see any out of memory problems at all.  The problems showed up
on the Motorola Droid, late last year.   I spent a lot of time
optimizing my own memory usage to try and fix it, but removing
targetSdkVersion="X" worked best.

My 2 cents,
-MK

--


Sponsored Links


Other Threads

1. OOT anak bandung ada yang ntn di kongkow ga nih?

as subject, ada ga?
-- 
           Regard
     Muh. Fitrah, ST
Sent From Gmail web

-- 
"Indonesian Android Community [id-android]" 

2. Bingung antara milestone vs droid

Hi All,

Salam kenal dari anggota baru.
Saya berencana pengen punya hape android kl bisa yg ada qwertynya,
seperti miley or droid. Maklum profesi sbg tukang ketik jadi qwerty
jadi pilihan utama.

Fakta yg saya tau tentang Miley
- Miley tuh GSM
- Gak bisa root jadi gak bisa install custom rom
- Garansi toko, krn kalau ada apa2 mesti dilempar ke singapore
- Gak ada secondary camera

Yg gak saya tau :
- Apakah GSM nya inject juga atw bisa ganti2 kartu ?


Fakta yg saya tau tentang Droid :
- CDMA EVDO
- Inject smart kalau di indo
- Udah bisa root, jadi bisa ganti ke android 2.2 dan the upcoming
android 3.0 (?) (tp dengan ram 512, kira2 mampu gak ya ?)
- Garansi toko, krn kalau ada apa2 mesti dilempar ke singapore
- Gak ada secondary camera

Yg gak saya tau :
- Bisa diganti injectnya sama esia atw yg lain gak ?

Mohon konfirmasinya ini benar atw tidak,
Sekalian kalau ada yg tau kelebihan atw kekurangannya bisa dikemukakan
disini.

Go easy on me yach everyone, maklum newbie bgt nich.

Terima kasih,

Ari

-- 
"Indonesian Android Community [id-android]" 

3. "adb shell" command gives very inconsistent results

4. Send data from my android application to tomcat server

5. Trying to compile the Voice Dialer, need help...

6. ListView containing multiple, clickable, Views (i.e. like GMail)

7. SQL