Code example for AnimationDrawable

Methods: start

          imgv.setBackgroundResource(R.anim.frameanim);       /*using frame animation on click button*/
          final AnimationDrawable rckanim=(AnimationDrawable)imgv.getBackground();
          bt1.setOnClickListener(new View.OnClickListener() {   
               public void onClick(View v) {
                    // TODO Auto-generated method stub 
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present. 
		getMenuInflater().inflate(, menu);
		getMenuInflater().inflate(,menu);        /*USE OF MENU RESOURCES*/
		return true;