title: How to run Opengl or OpenGL ES for array processing in android
body: <p>I have a requirement to process large array in my android app and currently it has become performance problem. To solve this my plan is to move the array processing in to GPU. I tried do this using Android Render script but that failed due to various reasons so my question is is there a way to move this calculation to GPU using opengl or OpenGL ES ? if someone can give me a idea to fix this it will be grate help.</p>
  
  <p>here is problematic code </p>
  
  <pre><code>for (int i = 0; i &lt;35000; i += 16)
      {
          int lumOne = in[i];
          lumOne += 128;
          pixelData[lumOne]=pixelData[lumOne]+1;
  
          int lumTwo = in[i+2];
          lumTwo += 128;
          pixelData[lumTwo]=pixelData[lumTwo]+1;
  
      }
  </code></pre>