Log in or register to post comments

Why is an activity necessary to initialize QCAR?

May 21, 2013 - 9:04am #1

Hi,

I was wondering why I have to provide an activity to QCAR.setInitParameters(). The documentation does not seem to contain information on this.

Furthermore, what requirements must the activity fulfill? For example, if I initialize QCAR on the current activity. Will Vuforia continue to work if I switch to another activity?

Why is an activity necessary to initialize QCAR?

May 21, 2013 - 9:23am #2

Hi, Vuforia needs access to your activity for some low-level Android tasks, but this is just about some low-level implementation details, nothing really relevant to be documented.

However, if you switch to a different Activity, Vuforia should get paused; this is because the switch to another Activity in Android (in general) causes the previous activity to be paused. Our samples show how to override the onPause() method to pause QCAR; this is the right and safe way of handling things, to avoid that Vuforia keeps running (and using resources) while another Activity is showing.

 

Log in or register to post comments