title: Error when trying to blur image using RenderScript support library on android phone
body: <p>I'm trying to blur my image, and display it blurred on an RelativeLayout's background with RenderScript, the app works in the emulator but my app in the phone keeps crashing with this error:</p>
  
  <blockquote>
    <p>08-05 22:21:36.543: E/RenderScript_jni(11549): No GC methods
    08-05 22:21:36.553: D/dalvikvm(11549): No JNI_OnLoad found in /system/lib/libRSSupport.so 0x41803ab8, skipping init
    08-05 22:21:36.557: E/dalvikvm(11549): ERROR: couldn't find native method
    08-05 22:21:36.557: E/dalvikvm(11549): Requested: Landroid/support/v8/renderscript/RenderScript;._nInit:()V
    08-05 22:21:36.558: E/JNIHelp(11549): RegisterNatives failed for 'android/support/v8/renderscript/RenderScript', aborting
    08-05 22:21:36.558: A/libc(11549): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 11549 (m.example.login)</p>
  </blockquote>
  
  <p>Here is my blur code on a seperate class:</p>
  
  <pre><code>import android.content.Context;
  import android.graphics.Bitmap;
  import android.support.v8.renderscript.*;
  
  public class Blur {
      public static Bitmap blurBitmap(Context context, Bitmap src) {
          Bitmap outBitmap = src.copy(src.getConfig(), true);
  
          final RenderScript rs = RenderScript.create(context);
          final Allocation input = Allocation.createFromBitmap(rs, src);
          final Allocation output = Allocation.createFromBitmap(rs, outBitmap);
  
          final ScriptIntrinsicBlur script =
                  ScriptIntrinsicBlur.create(rs, Element.U8_4(rs));
          script.setRadius(25f);
          script.setInput(input);
          script.forEach(output);
          output.copyTo(outBitmap);
  
          rs.destroy();
  
          return outBitmap;
      }
  }
  </code></pre>
  
  <p>and here is ny code in the MainActivity (I'm getting the Bitmap from the Gallery):</p>
  
  <pre><code>Uri selectedImageUri = data.getData();
  Blur blur = new Blur();
  imagepath = getRealPathFromURI(selectedImageUri);
  Bitmap bmImg = BitmapFactory.decodeFile(imagepath);
  Bitmap BlurredIMG = Blur.blurBitmap(getApplicationContext(), bmImg);
  BitmapDrawable background = new BitmapDrawable(BlurredIMG);
  rl.setBackgroundDrawable(background);
  </code></pre>