Should I compile my Android apps against the latest SDK? -


my app requires devices running @ least android 2.0 os. make more sense me compile project 2.0 sdk or make more sense compile project using latest sdk, if it's beyond 2.0...?

the problem compiling against 2.1 example don't know if android 2.0 device run app compiled 2.1...?

you can target later sdk version using android:targetsdkversion while still permitting app run on earlier versions (since apps filtered out based on android:minsdkversion). if use api's aren't supported, app force close. so, you'll have pay attention api level annotations in documentation functions, , test app on emulator set use minimum sdk version.

however, android developer's blog has some advice on how write applications support earlier sdk versions - @ cost of added work, of course. whether it's worth depends on whom want reach, obviously.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -