I am just gonna put in snippets of the code
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.frame_animations_layout);
(sets View)
*******************
case 0:
ImageView imgView =
(ImageView)findViewById(R.id.imageView);
imgView.setVisibility(ImageView.VISIBLE);
imgView.setBackgroundResource(R.drawable.frame_animation);
AnimationDrawable frameAnimation =
(AnimationDrawable)
imgView.getBackground();
if (! frameAnimation.isRunning())
{
frameAnimation.start();
}
break;
*****************************
should start animation.
The code logically is fine, as in it does get to this code but the
animation never appears on sceen.
Weirdly if i press the home button, and then switch back to my app it
reopens and the animation is then shown as running!
Is there a way to bring it to the foreground? or to give it focus
easily?
Thanks,
David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---