Back to project page AndroidPickerOperations.
The source code is released under:
Copyright (c) 2012 Azer Bulbul. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softw...
If you think the Android project AndroidPickerOperations listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
// // Created by Azer Bulbul on 12/29/13. // Copyright (c) 2013 Azer Bulbul. All rights reserved. ///*from w w w .j ava 2s . co m*/ package com.azer.camera; import com.adobe.fre.FREContext; import com.adobe.fre.FREFunction; import com.adobe.fre.FREInvalidObjectException; import com.adobe.fre.FREObject; import com.adobe.fre.FRETypeMismatchException; import com.adobe.fre.FREWrongThreadException; public class browseForImage implements FREFunction { @Override public FREObject call(FREContext context, FREObject[] passedArgs) { Boolean allowVideoCapture = false; try { allowVideoCapture = passedArgs[0].getAsBool(); } catch (IllegalStateException e) { e.printStackTrace(); } catch (FRETypeMismatchException e) { e.printStackTrace(); } catch (FREInvalidObjectException e) { e.printStackTrace(); } catch (FREWrongThreadException e) { e.printStackTrace(); } if(allowVideoCapture==true){ CameraSaveExtension.context.displayCamera(); } else { CameraSaveExtension.context.displayImagePicker(); } return null; } }