Hi,
I used this tutorial https://developer.vuforia.com/forum/faq/unity-how-can-i-extend-unitys-android-activity to start the QCarPlayer within my Android App. I search the View where the Player is in recursively and this works just fine. When I want to return, I call mQCARView.setVisibility(View.GONE); on my QCAR view which is (as far as I understood) hiding the Unity Player. But the thing is, when I call it, it doesn't only hide the player but also seems to finish my other Activity. So the setup here is as follows
Activity A -> Activity B -> QCAR Player
So far this works fine. But when I now want to hide the player and would expect to come back to Activity B, I turn out to be at Activity A. Any idea why this could happen? Am I missing something?
Thank you so much!
Hi,
turns out that is not a Vuforia specific problem. It was rather because I hade some things wrong with the context.
But I have another question for you: When I use the mentioned code, I am not able to start my AR View twice. The second time it doesn't start well. I have an idea why and this leads to my question: How can I totally destroy the UnityPlayer there? (So that I can start it again by calling the activity as in the normal process). Couldn't figure out how to do this, onDestroy() and finish() don't do the magic. I think I have to destroy the view but how can I do that?
Thanks!
- S