"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
QCARPlayerProxyActivity onkeydown
By lauragd_
on Wed, 06/20/2012 - 17:10
Hi, I'm trying to finish my QCARPlayerProxyActivity activity when back key is pressed but the onBackPressed() or onKeyDown methods do not work.
How I can do that?
Thanks in advance
The QCARPlayerProxyActivity is only active for a brief period of time at startup. Its job is to choose between the QCARPlayerActivity and the QCARPlayerNativeActivity, depending on the OS version.
[QUOTE=ksiva]The QCARPlayerProxyActivity is only active for a brief period of time at startup. Its job is to choose between the QCARPlayerActivity and the QCARPlayerNativeActivity, depending on the OS version.
If you're extending the QCARPlayerActivity/QCARPlayerNativeActivity class you should be able to override the onKeyDown method:
[CODE]
public boolean onKeyDown(int keyCode, KeyEvent event)
{
super.onKeyDown(keyCode, event);
// do something here
return true;
}
[/CODE]
Note this only appl
Re: QCARPlayerProxyActivity onkeydown
Re: QCARPlayerProxyActivity onkeydown
Re: QCARPlayerProxyActivity onkeydown