title: how to add snow flow effect in android?
body: <p>I  am trying to add snow flow effect. but not succeed 
  I tried to do the effect of continuously flow the snow. 
  is it possible? if yes than please give suggestion.</p>
  
  <p>my code is below.</p>
  
  <pre><code>public class MainActivity extends Activity {
  
      private int COLOR_MAX = 0xff;
  
      ImageView image;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          image = (ImageView)findViewById(R.id.imageView1);
          Bitmap imagebitmap = BitmapFactory.decodeResource(getResources(),R.drawable.hydrangeas);    
          applySnowEffect(imagebitmap);
  
      }
      Bitmap applySnowEffect(Bitmap source) 
      {
  
          // get image size
          int width = source.getWidth();
          int height = source.getHeight();
          int[] pixels = new int[width * height];
  
          // get pixel array from source
          source.getPixels(pixels, 0, width, 0, 0, width, height);
  
          // random object
          Random random = new Random();
  
          int R, G, B, index = 0, thresHold = 50;
          // iteration through pixels
  
  
          for(int y = 0; y &lt; height; ++y) {
              for(int x = 0; x &lt; width; ++x) {
  
                  // get current index in 2D-matrix
  
                  index = y * width + x;              
                  // get color
                  R = Color.red(pixels[index]);
                  G = Color.green(pixels[index]);
                  B = Color.blue(pixels[index]);
                  // generate threshold
                  thresHold = random.nextInt(COLOR_MAX );
                  if(R &gt; thresHold &amp;&amp; G &gt; thresHold &amp;&amp; B &gt; thresHold) {
                      pixels[index] = Color.rgb(COLOR_MAX, COLOR_MAX, COLOR_MAX);
                  }                           
              }
          }
          // output bitmap                
          Bitmap bmOut = Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565);
          bmOut.setPixels(pixels, 0, width, 0, 0, width, height);
  
          Toast.makeText(getApplicationContext(),"processed",10).show();
          return bmOut;
  
  
      }
  </code></pre>