Unity / QCAR Activity on Android

I am launching a Unity activity from a parent or "shell" app. I want to be able to pass it a bundle that has preferences for animations. I.E. color maps, language etc...

    Intent intent = new Intent();
    intent.setComponent(new ComponentName(

    intent.putExtra("BACK_GROUND_COLOR", "RED" );


Does anyone have an example of extracting the bundle after launching the Unity activity?

Also, is there an example of actually exiting the Unit/QCAR app. The only mechanism I have found was the home key which only suspends the app, and does not exit.

Right now, I am going to the application manager to force close the Unity activity.

Sorry if these are noob questions.

Thanks Richard

to exit with the back key, check at the bottom of this thread: http://forum.unity3d.com/threads/75360-Is-there-any-way-to-close-Activity

Hope it help