title: how to display an image on runtime on ImageView
body: <p>I just want to ask that how can I display subsequent images on imageview. I am able to draw only one image at a time. what I want that after Displaying the first images it should go for taking the second image(second image will come on runtime) and display after some DELAY. And then third frame then 4th and so on..Using the setImageBitmap function I can display only one image and when i tried it for subsequent images I am not able to see the output.
  I have also tried by using onDraw function but get same result.
  Since I am getting image information in JNI interface. So can I use GLSurfaceview to display image. since I am new on Android. I never used OpenGL so can anybody please provide me some code for displaying subsequent images whether using GLsurfaceView or onDraw method of class view.
  the code of what I am using is as follows...</p>
  
  <pre><code>class Display1 extends ImageView
  {
  Bitmap bMapScaled;
  Bitmap bit;
  Canvas c=new Canvas();
  private static Context mContext = null;
  private static final String TAG = "Example:Display";
  public Display1(Context context, AttributeSet attrs) {
      super(context, attrs);
      mContext=context;
  }
  
  
  
      public void drawImage(byte[] data, int width, int height)
      {
          Log.d(TAG, "drawImage2 called");
          bit=BitmapFactory.decodeByteArray(data, 0, data.length);
           bMapScaled = Bitmap.createScaledBitmap(bit, 150, 150, true);
          c.drawBitmap(bMapScaled, 0, 0, null);
          this.setImageBitmap(bMapScaled);
      }
  // public native void drawImage(byte[] data, int width, int height);
      static {
          System.loadLibrary("itv");
      }
  </code></pre>
  
  <p>}</p>
  
  <p>Please help me to solve this problem</p>
  
  <p>Thanks in Advance</p>