From a1a9fd19df311a8c3be7dc3dd63a8992ecc50b03 Mon Sep 17 00:00:00 2001
From: Joe Fernandez
Note: On Android 4.2 and newer, Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options.
-Note: If you decide that the minimum -API level your app requires is 11 or higher, you don't need to use the Support -Library and can instead use the framework's built in {@link android.app.Fragment} class and related -APIs. Just be aware that this lesson is focused on using the APIs from the Support Library, which -use a specific package signature and sometimes slightly different API names than the versions -included in the platform.
-Before you begin this lesson, you must set up your Android project to use the Support Library. If you have not used the Support Library before, set up your project to use the v4 library by following the Support Library diff --git a/docs/html/training/basics/intents/result.jd b/docs/html/training/basics/intents/result.jd old mode 100644 new mode 100755 index b5214880fbbe..31d5a7c2616a --- a/docs/html/training/basics/intents/result.jd +++ b/docs/html/training/basics/intents/result.jd @@ -107,8 +107,8 @@ contact the user selected.
In order to successfully handle the result, you must understand what the format of the result {@link android.content.Intent} will be. Doing so is easy when the activity returning a result is one of your own activities. Apps included with the Android platform offer their own APIs that -you can count on for specific result data. For instance, the People app (Contacts app on some older -versions) always returns a result with the content URI that identifies the selected contact, and the +you can count on for specific result data. For instance, the People app always returns a result +with the content URI that identifies the selected contact, and the Camera app returns a {@link android.graphics.Bitmap} in the {@code "data"} extra (see the class about Capturing Photos).
diff --git a/docs/html/training/custom-views/making-interactive.jd b/docs/html/training/custom-views/making-interactive.jd old mode 100644 new mode 100755 index 4e9d53a5e773..14163d8bf267 --- a/docs/html/training/custom-views/making-interactive.jd +++ b/docs/html/training/custom-views/making-interactive.jd @@ -229,8 +229,8 @@ if (!mScroller.isFinished()) { is not available prior to API level 11, so this technique cannot be used on devices running Android versions lower than 3.0. -Note: {@link android.animation.ValueAnimator} isn't available - prior to API level 11, but you can still use it in applications that +
Note: You can use {@link android.animation.ValueAnimator} in +applications that target lower API levels. You just need to make sure to check the current API level at runtime, and omit the calls to the view animation system if the current level is less than 11.
diff --git a/docs/html/training/game-controllers/compatibility.jd b/docs/html/training/game-controllers/compatibility.jd old mode 100644 new mode 100755 index f68ab1ae1278..51ae9ee93669 --- a/docs/html/training/game-controllers/compatibility.jd +++ b/docs/html/training/game-controllers/compatibility.jd @@ -13,7 +13,7 @@ trainingnavtop=true SuppportThis lesson demonstrates how to use APIs available in Android 4.1 and higher in a backward compatible way, enabling your game to support the following -features on devices running Android 2.3 and higher:
+features on devices running Android 3.1 and higher:Suppose you want to be able to determine if a game controller's connection -status has changed on devices running on Android 2.3 (API level 9). However, +status has changed on devices running on Android 3.1 (API level 12). However, the APIs are only available in Android 4.1 (API level 16) and higher, so you need to provide an implementation that supports Android 4.1 and higher while -providing a fallback mechanism that supports Android 2.3 up to Android 4.0.
+providing a fallback mechanism that supports Android 3.1 up to Android 4.0.To help you determine which features require such a fallback mechanism for older versions, table 1 lists the differences in game controller support - between Android 2.3 (API level 9), 3.1 (API level 12), and 4.1 (API level + between Android 3.1 (API level 12) and 4.1 (API level 16).
@@ -74,7 +74,6 @@ different Android versions.
The {@code InputManagerV9} implementation uses APIs introduced no later -than Android 2.3. To create an implementation of {@code -InputManagerCompat} that supports Android 2.3 up to Android 4.0, you can use +
To create an implementation of {@code +InputManagerCompat} that supports Android 3.1 up to Android 4.0, you can use the following objects:
You now have two implementations of {@code InputManagerCompat}: one that works on devices running Android 4.1 and higher, and another -that works on devices running Android 2.3 up to Android 4.0.
+that works on devices running Android 3.1 up to Android 4.0.The version-specific switching logic is implemented in a class that acts as @@ -626,7 +613,7 @@ public class GameView extends View implements InputDeviceListener { onGenericMotionEvent()} method in your main view, as described in Handle a MotionEvent from a Game Controller. Your game should now be able to process game controller events -consistently on devices running Android 2.3 (API level 9) and higher. +consistently on devices running Android 3.1 (API level 12) and higher.
@Override
@@ -640,4 +627,4 @@ public boolean onGenericMotionEvent(MotionEvent event) {
You can find a complete implementation of this compatibility code in the {@code GameView} class provided in the sample {@code ControllerSample.zip} -available for download above.
\ No newline at end of file +available for download above. diff --git a/docs/html/training/multiscreen/screensizes.jd b/docs/html/training/multiscreen/screensizes.jd old mode 100644 new mode 100755 index a34c3d526042..2cd59ee90a56 --- a/docs/html/training/multiscreen/screensizes.jd +++ b/docs/html/training/multiscreen/screensizes.jd @@ -56,9 +56,8 @@ next.link=screendensities.html you should use"wrap_content" and "match_parent" for the width
and height of some view components. If you use "wrap_content", the width
or height of the view is set to the minimum size necessary to fit the content
-within that view, while "match_parent" (also known as
-"fill_parent" before API level 8) makes the component expand to match the size of its
-parent view.
+within that view, while "match_parent" makes the component expand to match the size of
+its parent view.
By using the "wrap_content" and "match_parent" size values instead of
hard-coded sizes, your views either use only the space required for that
diff --git a/docs/html/training/system-ui/dim.jd b/docs/html/training/system-ui/dim.jd
old mode 100644
new mode 100755
index a86257a8c7c7..be2e6c2be200
--- a/docs/html/training/system-ui/dim.jd
+++ b/docs/html/training/system-ui/dim.jd
@@ -53,7 +53,7 @@ creating an immersive experience without sacrificing easy access to the bars.
You can dim the status and notification bars on Android 4.0 and higher using the +
You can dim the status and notification bars using the {@link android.view.View#SYSTEM_UI_FLAG_LOW_PROFILE} flag, as follows:
diff --git a/docs/html/training/system-ui/navigation.jd b/docs/html/training/system-ui/navigation.jd old mode 100644 new mode 100755 index 385aa9d796d0..87f52c672343 --- a/docs/html/training/system-ui/navigation.jd +++ b/docs/html/training/system-ui/navigation.jd @@ -10,7 +10,7 @@ trainingnavtop=trueThis lesson teaches you to
-
@@ -56,9 +56,9 @@ user experience. -- Hide the Navigation Bar on 4.0 and Higher
+- Hide the Navigation Bar
- Make Content Appear Behind the Navigation Bar
Hide the Navigation Bar on 4.0 and Higher
+Hide the Navigation Bar
-You can hide the navigation bar on Android 4.0 and higher using the +
You can hide the navigation bar using the {@link android.view.View#SYSTEM_UI_FLAG_HIDE_NAVIGATION} flag. This snippet hides both the navigation bar and the status bar:
View decorView = getWindow().getDecorView(); diff --git a/docs/html/training/system-ui/status.jd b/docs/html/training/system-ui/status.jd old mode 100644 new mode 100755 index b8e569617014..9169efc85492 --- a/docs/html/training/system-ui/status.jd +++ b/docs/html/training/system-ui/status.jd @@ -12,8 +12,6 @@ trainingnavtop=true -- cgit v1.2.3-59-g8ed1b