package com.markupartist.sthlmtraveling;

import android.app.Activity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.TaskStackBuilder;

public class DeparturesShortcutProxyActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        Intent intent = getIntent();

        Intent startIntent = new Intent(getApplicationContext(), StartActivity.class);
        if (!intent.hasExtra(DeparturesActivity.EXTRA_SITE_NAME)) {
            startActivity(startIntent);
        }

        Intent departuresIntent = new Intent(getApplicationContext(), DeparturesActivity.class);
        departuresIntent.putExtra(DeparturesActivity.EXTRA_SITE_NAME,
                intent.getStringExtra(DeparturesActivity.EXTRA_SITE_NAME));

        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) {
            startActivity(departuresIntent);
        } else {
            Intent[] pendingIntents =
                    TaskStackBuilder.create(this)
                            .addNextIntentWithParentStack(startIntent)
                            .addNextIntentWithParentStack(departuresIntent)
                            .getIntents();
            startActivities(pendingIntents);
        }

    }
}

package com.markupartist.sthlmtraveling;

import android.app.Activity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.TaskStackBuilder;

public class DeparturesShortcutProxyActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        Intent intent = getIntent();

        Intent startIntent = new Intent(getApplicationContext(), StartActivity.class);
        if (!intent.hasExtra(DeparturesActivity.EXTRA_SITE_NAME)) {
            startActivity(startIntent);
        }

        Intent departuresIntent = new Intent(getApplicationContext(), DeparturesActivity.class);
        departuresIntent.putExtra(DeparturesActivity.EXTRA_SITE_NAME,
                intent.getStringExtra(DeparturesActivity.EXTRA_SITE_NAME));

        Intent[] pendingIntents =
                TaskStackBuilder.create(this)
                        .addNextIntentWithParentStack(startIntent)
                        .addNextIntentWithParentStack(departuresIntent)
                        .getIntents();
        startActivities(pendingIntents);
    }
}

Change to not check for honeycomb
Change to not check for honeycomb
