By kami_uetian
on Tue, 06/25/2013 - 10:30
I am using an android project as a plugin in unity.
The plugin Activity extends the QCARPlayerActivity.
What i want the a button should be displayed on top of it.
I followed the link
to add custom view. it works fine when we use unity project as plugin in eclipse.
But in my case. the application crashes as soon as i starts.
adding view on top of camera inplugin activity
Have you tried implementing the steps of that link for the ImageTargets sample ? does it crash for the sample too ?
adding view on top of camera inplugin activity
the application runs fine when i use unity project as a plugin in eclipse.
Now i succesfully added the layout in plugin activity programmatically. But the issue is it just show up for a moment before splash screen. and disappears when the camera starts.
adding view on top of camera inplugin activity
I see in your code you have removed these two lines:
adding view on top of camera inplugin activity
sorry this is just typo mistake. I made this change after testing the code exactly i copied from the website link i mentioned.
and as i told it works.
But you are not getting my point.
adding view on top of camera inplugin activity
OK. So, I thought you were following the approach described in the ilnk that you originally mentioned: