Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Animations and Transitions Activity Transitions: Advanced Topics Postpone a Transition

Transitions postponement

The Activity below is displaying images downloaded from the internet. Postpone the enter transition for this activity until the images are downloaded and set, which happens in the initViews() method.

public class MainActivity extends Activity {

    // Some code omitted for brevity!

    protected void onCreate(Bundle savedInstanceState) {


    public void setupTransitions() {
        // (Omitted) Code to set up transitions...


    public void initViews() {
        // (Omitted) Code to initialize all views in the Activity...


Please can anyone help me am stuck Ben Deitch

Ben Jakuben please help me

2 Answers

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Alright, let's check out this line:


First, you've added curly braces instead of parentheses, which will give you a syntax error.

Second, if you look at the definition for initView(), you'll see that it doesn't take any parameters, so you wouldn't want to add postponeEnterTransition() or anything else in there.

So you'll need to change that line back to its original form: initViews();

Then, you are on the right track with using postponeEnterTransition()--you just need to call it in the right place. Here's your hint: You want to call this method as the transitions are being setup.

Thanks very much, i was getting worried with this challenge.

postponeEnterTransition(); had to be simply called in the setupTransition method!