Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Are All The Android API's Backwardly Compatible?

Options
  • 08-07-2012 9:22pm
    #1
    Registered Users Posts: 1,017 ✭✭✭


    I have Android 4.1 (API 16) installed and all seems to be OK. To cut down on bloat it's the only version of the API I installed when I was setting up my development environment.

    Am I correct in believing that as long as I don't incorporate any functionality in my apps specific to a later version of the API I can safely use this version to write code to run under Android 2.3.3 (API 10)?


Comments

  • Registered Users Posts: 211 ✭✭CrazyFish


    Majority of the stuff should be backwards compatible but not all of them are. For example if you were using Bluetooth I don't think it is support below Android 2.0(Unless things have changed since I have last used Bluetooth).


  • Registered Users Posts: 1,235 ✭✭✭Odaise Gaelach


    I think so. But to be honest, you'd be better off downloading API 10 and targeting it in your project. Just to be completely sure. :)


  • Registered Users Posts: 428 ✭✭Joneser


    I am pretty sure most things are backwards compatible as mentioned above, but here is some information on backwards compatible UIs for android:

    http://developer.android.com/training/backward-compatible-ui/index.html


  • Closed Accounts Posts: 19,777 ✭✭✭✭The Corinthian


    The_Thing wrote: »
    Am I correct in believing that as long as I don't incorporate any functionality in my apps specific to a later version of the API I can safely use this version to write code to run under Android 2.3.3 (API 10)?
    More or less. There are a few things that are not strictly tied to functionality, such as FILL_PARENT was renamed MATCH_PARENT from API 8 that might cause issues, but for the most part compatibility issues tend to be largely incremental functional ones - at least from API 7.

    Setting an API value for android:minSdkVersion in the manifest, should also enforce backward comparability.

    As for what minimum API to write for, according to the latest figures you could probably ignore everything below Froyo (API 8) at this stage (~5%).


  • Registered Users Posts: 1,017 ✭✭✭The_Thing


    Thanks to everyone for their help.

    If I test out an app on my phone - a Huawei Ascend G300 - will the app overwrite the previous instance of itself (if any) or will I end up with multiple versions installed? I imagine it will overwrite what was there before, but no harm in asking for clarity's sake.

    I'd rather try them out on the phone as I find the emulator to be unbearably slow loading them.


  • Advertisement
  • Registered Users Posts: 211 ✭✭CrazyFish


    The_Thing wrote: »
    Thanks to everyone for their help.

    If I test out an app on my phone - a Huawei Ascend G300 - will the app overwrite the previous instance of itself (if any) or will I end up with multiple versions installed? I imagine it will overwrite what was there before, but no harm in asking for clarity's sake.

    I'd rather try them out on the phone as I find the emulator to be unbearably slow loading them.

    It uninstalls and reinstalls the application when it already exists on the phone. So you wont have duplicates.


  • Registered Users Posts: 1,017 ✭✭✭The_Thing


    CrazyFish wrote: »
    It uninstalls and reinstalls the application when it already exists on the phone. So you wont have duplicates.

    Thanks for letting me know.


Advertisement