Log in or register to post comments

PlayerActivity is not calling my virtualball unity app.

September 29, 2011 - 1:15am #1

Hi Kim,

I'm opening a new thread extending from this my post:
https://ar.qualcomm.at/arforums/showpost.php?p=4315&postcount=28

I've send qcar-support@qualcomm.com my custom project along with the library project.

I think something is wrong/missing with my Activity class. I've already create a new class called MyActivity and extended it with com.qualcomm.QCARUnityPlayer.VirtualBallPlayerActivity .

But it keep displaying the main.xml content with helloworld. If i disable the setContentView(R.layout.main), empty black screen showin in my running android app.
And my camera is not being opened at all.
I already changed my AndroidManifest.xml activity to call MyActivity. But not sure if its the correct way to do. Please guide me..:confused:

Your help is highly appreciated...

Re: PlayerActivity is not calling my virtualball unity app.

September 29, 2011 - 9:10pm #3

Hi Kim,

Now I'm getting this below error when i try to build the project.
I already ..
1) renamed my custom project package name
2) and renamed my package name in manifest
3) added the jars from the QCARPlayerProxyActivity/plugins folder to my VirtualBallPlayer project.
4) and extended com.qualcomm.QCARUnityPlayer.QCARPlayerActivity to my VirtualBallPlayerActivity class.

But the generated Java Files package still having the same old name. How do i solve this??
I've attached my custom project(VirtualBallPlayer) and library project(VirtualBallLib) directory structures snapshot..

[2011-09-30 11:58:14 - VirtualBallPlayer] Dx
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lcom/qualcomm/QCARUnityPlayer/R$attr;

[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at com.android.dx.dex.file.DexFile.add(DexFile.java:143)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at com.android.dx.command.dexer.Main.processClass(Main.java:372)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at com.android.dx.command.dexer.Main.processFileBytes(Main.java:346)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at com.android.dx.command.dexer.Main.access$400(Main.java:59)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:294)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:130)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:108)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at com.android.dx.command.dexer.Main.processOne(Main.java:313)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at com.android.dx.command.dexer.Main.processAllFiles(Main.java:233)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at com.android.dx.command.dexer.Main.run(Main.java:185)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at java.lang.reflect.Method.invoke(Unknown Source)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at com.android.ide.eclipse.adt.internal.build.DexWrapper.run(DexWrapper.java:179)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(BuildHelper.java:652)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.build(PostCompilerBuilder.java:510)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
[2011-09-30 11:58:14 - VirtualBallPlayer] Dx 1 error; aborting
[2011-09-30 11:58:14 - VirtualBallPlayer] Conversion to Dalvik format failed with error 1

Re: PlayerActivity is not calling my virtualball unity app.

September 29, 2011 - 2:11am #2

Hi Kim,

I tried to set up the eclipse project again using guideline from this site:
http://unity3d.com/support/documentation/Manual/Android-Integrating%20Unity%20With%20Eclipse.html

On this setup:
1) Removed my own newly created MyActivity and left with the original VirtualBallPlayerActivity.
2) i extended the VirtualBallPlayerActivity with UnityPlayerActivity.
Previously extended with Activity.
3) Commented setContentView(R.layout.main); in onCreate method.
4) called VirtualBallPlayerActivity in AndroidManifest.xml

So, now in my android... the application is starting the unityplayer but my virtualball app is not shown & camera is not turned on. The sceen remains black with the remark only at the right bottom (trial version Development Build) :confused:

Log in or register to post comments