question

JeReT avatar image
JeReT asked

Unity: CANNOT_INITIALIZE if not using default main activity

Hi, I implemented GameCircle in my game and tested it. I always received CANNOT_INITIALIZE errors. After a lot of trials I discovered the source of the problem: My main activity is not the default unity-activity. I use a bluetooth plugin which needs to be the main activity... Is there a way to use GameCircle with an individual main activity? I have the source of the Bluetooth plugin. Maybe I can add something which is needed by the GameCircle plugin?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

JeReT avatar image
JeReT answered
I found a solution for the problem. I now use the prime31 activity sharing system. The main activity should look like this then: Maybe the sharing system was not the solution for the problem but the "ForwardNativeEventsToDalvik" meta-data node. It was previously set to false...
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.