x


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(
            "com.qualcomm.QCARUnityPlayer",
            "com.qualcomm.QCARUnityPlayer.PlayerActivity"));  

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

    startActivity(intent);

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

more ▼

asked Mar 04 '11 at 06:06 PM

Richard 9 gravatar image

Richard 9
11 1 1 2

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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 Regards

Alejandro

more ▼

answered Dec 13 '11 at 02:38 AM

l3thion gravatar image

l3thion
1

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3729
x2460
x24
x19
x4

asked: Mar 04 '11 at 06:06 PM

Seen: 2585 times

Last Updated: Dec 13 '11 at 02:38 AM