From d6efca8c56e3133d32f77f3549707f0209c9e342 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Tue, 25 Nov 2014 21:56:37 +0100 Subject: [PATCH] use rs support library and minSdkVersion 15 --- app/app.iml | 1 + app/build.gradle | 4 ++-- app/src/main/java/xdsopl/robot36/DecoderThread.java | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/app.iml b/app/app.iml index d426274..5a8b68e 100644 --- a/app/app.iml +++ b/app/app.iml @@ -81,6 +81,7 @@ + diff --git a/app/build.gradle b/app/build.gradle index 998ebaf..ed9d080 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -6,12 +6,12 @@ android { defaultConfig { applicationId "xdsopl.robot36" - minSdkVersion 18 + minSdkVersion 15 targetSdkVersion 21 versionCode 1 versionName "1.0" renderscriptTargetApi 19 - renderscriptSupportMode false + renderscriptSupportMode true } buildTypes { release { diff --git a/app/src/main/java/xdsopl/robot36/DecoderThread.java b/app/src/main/java/xdsopl/robot36/DecoderThread.java index 824cd8e..b0e0b41 100644 --- a/app/src/main/java/xdsopl/robot36/DecoderThread.java +++ b/app/src/main/java/xdsopl/robot36/DecoderThread.java @@ -25,9 +25,9 @@ import android.graphics.Paint; import android.media.AudioFormat; import android.media.AudioRecord; import android.media.MediaRecorder; -import android.renderscript.Allocation; -import android.renderscript.Element; -import android.renderscript.RenderScript; +import android.support.v8.renderscript.Allocation; +import android.support.v8.renderscript.Element; +import android.support.v8.renderscript.RenderScript; import android.view.SurfaceHolder; public class DecoderThread extends Thread {