I am going to create an Android application that supports multiple API levels. I searched the Android Developers website and learned that this is done as follows:
if (android.os.Build.VERSION.SDK_INT >= 11)
{
// Use APIs supported by API level 11 (Android 3.0) and up
}
else
{
// Do something different to support older versions
}
The above is used in Java files, but what about XML files? I am using some Android 4.0 tags.
I am an iOS developer, too. In iOS, I always design UIs programmetically. Which is better in Android applications: creating applications programmatically, like I do for iOS applications, or by using XML files.
Android UI design is not good like iOS UI design is.
Android UI design is not good like iOS UI designgood is very general, sure things can be wrong with it and they both use different technologies to do the same thing. Try to explain why next time!