The topic FAQ will summarize the most recently asked questions about the Android SDK.
How can I change the ESnap box size?
The ESnap box size is a system controlled value and can be changed via C++ as follow:
GetFxSystemServices()->GetHostAppServices()->setDYNASNAPSIZE( YOUR_DYNASNAPSIZE );
Note: The ESnap box size varies with the display resolution to the Android device. We recommend to update the value YOUR_DYNASNAPSIZE
with the Android display metrics and apply the correct device dependent multiplier. This ensure the ESnap box will have the same size on all devices.
Resources res = m_ARES.getResources(); int iDynsnapSize = (int) TypedValue.applyDimension( TypedValue.COMPLEX_UNIT_DIP, YOUR_DYNASNAPSIZE, res.getDisplayMetrics() );
Database values like PDSIZE and PDMODE can be changed via C++ as follow:
ACTIVE_DOCUMENT()->GetFxDatabase()->setPDSIZE( YOUR_PDSIZE ); ACTIVE_DOCUMENT()->GetFxDatabase()->setPDMODE( YOUR_PDMODE );
Hint: Use ARES Commander to get the correct values you want to use inside your mobile application.