I wrote code which can change background image random every 5 second.now i want to use fade in/out animation to change background image,but I do not know how I can use this animation.
This is a my source:
void handlechange() {
    Handler hand = new Handler();
    hand.postDelayed(new Runnable() {
        @Override
        public void run() {
            // TODO Auto-generated method stub
            // change image here
            change();
        }
        private void change() {
            // TODO Auto-generated method stub
            Random rand = new Random();
            int index = rand.nextInt(image_rundow.length);
            mapimg.setBackgroundResource(image_rundow[index]);
            handlechange();
        }
    }, 4000);
}
At the moment everything is OK. I can change background image random,but I don't know how can I use animation fade in/out.
If anyone knows solution please help me, thanks.
 
     
     
     
     
     
     
    