Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 4 Next »

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_SIZE );

Note: The ESnap box size varies with the display resolution to the Android device. We recommend to change the fixed value 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, 20, res.getDisplayMetrics() );

Database values like PDSIZE and PDMODE can be changed via C++ as follow:

ACTIVE_DOCUMENT()->GetFxDatabase()->setPDSIZE( YOUR_SIZE );
ACTIVE_DOCUMENT()->GetFxDatabase()->setPDMODE( YOUR_MODE );


  • No labels