Editing Translations:Android Training/Supporting Different Platform Versions/8/en

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

Message definition (Android Training/Supporting Different Platform Versions)
'''Note:''' When parsing XML resources, Android ignores XML attributes that aren’t supported by the current device. So you can safely use XML attributes that are only supported by newer versions without worrying about older versions breaking when they encounter that code. For example, if you set the <code>targetSdkVersion="11"</code>, your app includes the <code>[http://developer.android.com/reference/android/app/ActionBar.html ActionBar]</code> by default on Android 3.0 and higher. To then add menu items to the action bar, you need to set <code>android:showAsAction="ifRoom"</code> in your menu resource XML. It's safe to do this in a cross-version XML file, because the older versions of Android simply ignore the <code>showAsAction</code> attribute (that is, you ''do not'' need a separate version in <code>res/menu-v11/</code>).

Please note that all contributions to Android Wiki are considered to be released under the Creative Commons Attribution/Share-Alike Lizenz 3.0 (see DroidWiki:Urheberrechte for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)