| Summary: | Android : use Zoom button as Volume Key | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Sylvain <sylvain.becker> |
| Component: | *don't know* | Assignee: | Gabriel Jacobo <gabomdq> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | gabomdq |
| Version: | HG 2.1 | ||
| Hardware: | ARM | ||
| OS: | Android (All) | ||
|
Description
Sylvain
2013-08-14 10:06:47 UTC
Look for KeyEvent.KEYCODE_VOLUME_UP in SDLActivity.java, you'll see they are bypassed so Android can apply the default behaviour. You probably need to add whatever code corresponds to those zoom buttons. If you figure what those are let us know! Well I found this : http://stackoverflow.com/questions/15115012/android-api-to-detect-samsung-galaxy-camera-zoom-buttons That could be: KeyEvent.KEYCODE_ZOOM_IN KeyEvent.KEYCODE_ZOOM_OUT But I couldn't try it as I dont have the device. I submitted a modified version of my application with a patch and see if it passes the certification. I will let you know. KEYCODE_ZOOM_IN and KEYCODE_ZOOM_OUT, are API Level 11, so they would have to be added as their corresponding values, otherwise there'll be a compilation error May I ask you why we don't upgrade the Build Properties to compile with API_18 since this is it the latest ? Together with keeping min-target=10 in the ManifestXml. BTW, the modified app with ZOOM_IN/OUT + CAMERA passed the certification. Thanks |