0

I was looking for a solution to run a framanimation as my project splash screen . First I was facing OutOfmemory error . but this post https://stackoverflow.com/a/10993879/1909309 worked perfectly . but I want at the end of running all frames , animation to be stopped . but I couldn't find the way to stop the animation after 12 frames . plz help me out .

thnks in advance

1 Answer 1

2

need to stop the animation after running all frames . like I have 81 frames to animate and I want to run this animation for one time not repeatedly . I found the solution . just need to modify the getNext() methode here is the solution , after looping through the hole frames just call the onStop() method

private int getNext() {
        mIndex++;
        if (mIndex >= mFrames.length) {
            mIndex = 0;
            stop();
        }

        return mFrames[mIndex];
    }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.