RenderScript on Tango
This one’s mostly a note for myself. I just got RenderScript working with AndroidStudio for my Tango tablet. It’s not well documented, and it seems to be a moving target, so here’s what I needed to do:
- In the defaultConfig element of the gradle script, add these two lines:
renderscriptTargetApi 19
renderscriptSupportModeEnabled true
- In the Java code, import RenderScript like so:
import android.support.v8.renderscript.*;
- Right click on the app and select “New/Folder/RenderScript Folder”
- With a text editor, add your .rs files to that directory