"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Android action bar and title bar

Hello,

 

I'm not sure this is the correct place to post this but I think it's the most relevant.

I'm using Vuforia for Unity to create a very simple project. I have exported this project to Unity and followed the step to subclass my main activity with QCARPlayerActivity :

public class MainActivity extends QCARPlayerActivity

 

My applicationcompiles and runs successfully, I have even be able to add topviews such as buttons and labels (next step is fragment).

The only thing missing here is an action bar.

When I try the get the action bar with GetActionBar() in my main activity, the method returns null.

I red somewhere that it was because I had no Title Bar.

I also tried to force the app not to be in fullscreen without any success :

                        getWindow().addFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);                        getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);

I made sure to export with the statusBarHidden parameter set to false in the Unity parameters :

  <bool name="hide_status_bar">False</bool>

Before the splashscreen I see the title bar, but it's as if it is covered by the QCAR view, or removed by the QCARPlayerActivity.

So my question is : how do I get an action bar (and a title bar since it seems to be the same thing) with my activity subclassign from QCARPlayerActivity.

Thanks,

 

Hello,

Thank you for the link, this is the tutorial I followed when I wanted to addsubviews.

I don't think this is an Android issue, since the title bar (and action bar) is here before launching my QCARPlayerActivity.

Hello,

Thank you very much for your support.

Unfortunately I can't even get the action bar, as getActionBar() will always return null.

It seems this behavior is 'normal' when the title bar has been removed, because title bar and action bar are the same thing.