Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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!