diff --git a/docs/html/guide/topics/renderscript/compute.jd b/docs/html/guide/topics/renderscript/compute.jd index 607d16e036653..14a16822c6139 100644 --- a/docs/html/guide/topics/renderscript/compute.jd +++ b/docs/html/guide/topics/renderscript/compute.jd @@ -10,6 +10,11 @@ parent.link=index.html
When developing an Android application that uses RenderScript, you can access its Java API in + one of two ways. The APIs are available in the {@link android.renderscript} package + on devices running Android 3.0 (API level 11) and higher. These are the original APIs for + RenderScript. The APIs are also available as a Support Library in the + {@link android.support.v8.renderscript} package, which allow you to use them on devices running + Android 2.2 (API level 8) and higher.
+ +We strongly recommend using the Support Library APIs for accessing RenderScript because they + include the latest improvements to the RenderScript compute framework and provide a wider range + of device compatibility. Using the RenderScript APIs in the Support Library requires specific + setup procedures for your development environment, which is described in the next section.
+ + +In order to use the Support Library RenderScript APIs, you must configure your development + environment to be able to access them. The following Android SDK tools are required for using + these APIs:
+ +You can check and update the installed version of these tools in the + Android SDK Manager.
+ ++ Note: Use of Support Library RenderScript APIs is not currently supported with + Android Studio or Gradle-based builds. +
+ +To use the Support Library RenderScript APIs in Eclipse:
+ ++renderscript.target=18 +renderscript.support.mode=true +sdk.buildtools=18.1.0 ++
+import android.support.v8.renderscript.*; ++
The {@code project.properties} settings listed above control specific behavior in the Android + build process:
+ +Using RenderScript from Java code relies on the {@link android.renderscript} APIs. Most +
Using RenderScript from Java code relies on the API classes located in the +{@link android.renderscript} or the {@link android.support.v8.renderscript} package. Most applications follow the same basic usage patterns: