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 ww w . j a v a 2s. c om package com.azer.camera; import com.adobe.fre.FREContext; import com.adobe.fre.FREFunction; import com.adobe.fre.FREObject; import com.adobe.fre.FREWrongThreadException; public class IsCameraAvailableFunction implements FREFunction{ @Override public FREObject call(FREContext context, FREObject[] args) { try { Boolean isAvailable = CameraSaveExtension.context.isCameraAvailable(); FREObject retValue = FREObject.newObject(isAvailable); return retValue; } catch (FREWrongThreadException exception) { return null; } } }