[TIMOB-14180] Android: Add Ti.Media.hideCamera() function
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-05-28T16:09:54.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | 2013 Sprint 15, Release 3.2.0 |
Components | Android |
Labels | android, camera, media, module_media, parity, qe-testadded, tbs-1.9.0 |
Reporter | Daniel Sefton |
Assignee | Bill Dawson |
Created | 2013-06-11T18:03:14.000+0000 |
Updated | 2014-05-28T16:09:54.000+0000 |
Description
*MediaModule.java*
@Kroll.method
public void hideCamera()
{
TiCameraActivity.cameraActivity.setResult(Activity.RESULT_OK);
TiCameraActivity.cameraActivity.finish();
}
Verified the fix with: Appc-Studio: 3.2.0.201310181700 Sdk:3.2.0.v20131021142445 alloy:1.2.2 npm:1.3.2 titanium:3.2.0 titanium-code-processor:1.0.3 Device:Google Nexus 7(v4.3), iPOD Touch1(v7.0) Xcode: 5 Ti.Media.hideCamera() function working fine on both iOS and Android