Android Open Source - AndroidPickerOperations Is Camera Available Function






From Project

Back to project page AndroidPickerOperations.

License

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.

Java Source Code

//
//  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;
    }
  }

}




Java Source Code List

com.azer.camera.CameraSaveExtensionContext.java
com.azer.camera.CameraSaveExtension.java
com.azer.camera.CameraSaveFunction.java
com.azer.camera.CameraSaveNativeActivity.java
com.azer.camera.DeleteTempFileFunction.java
com.azer.camera.IsCameraAvailableFunction.java
com.azer.camera.IsImagePickerAvailableFunction.java
com.azer.camera.MyMediaConnectorClient.java
com.azer.camera.browseForImage.java