登录
首页 » Android » Android + iOS手电筒示例

Android + iOS手电筒示例

于 2023-07-16 发布 文件大小:50.68 kB
0 118
下载积分: 2 下载次数: 1

代码说明:

翻译 maninwest@Codeforge 作者:Cloud Hsu@CodeProject这里是简单的示例,用于展示如何控制  iOS 和 Android 上的手电筒背景我开发了一个跨平台框架 CloudBox,在这个  alpha 版本中,我想验证CloudBox,所以我想应该开发一个简单的应用。这个手电筒示例是第一个使用 CloudBox 开发的应用.但是 CloudBox 还没有准备公开,所以这些例子也是常规的 Android 和 iOS 例子.使用代码在  Android 中,我实现了一个类  CloudLed 来控制相机.public class CloudLed { boolean m_isOn; Camera m_Camera; public boolean getIsOn() { return m_isOn; } public CloudLed() { m_isOn = false; } public void turnOn() { if(!m_isOn) { m_isOn = true; try { m_Camera = Camera.open(); Camera.Parameters mParameters; mParameters = m_Camera.getParameters(); mParameters.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • speex消回音实例
    1.回声消除就是在Mic采集到声音之后,将本地音箱播放出来的声音从Mic采集的声音数据中消除掉,使得Mic录制 的声音只有本地用户说话的声音。传统的回声消除都是采用硬件方式,在硬件电路上集成DSP处理芯片,如我 们常用的固定电话、手机等都有专门的回音消除处理电路,而采用软件方式实现回声消除一直存在技术难点, 包括国内应用最广泛的QQ超级语音,便是采用国外的GIPS技术,由此可见一般。 2.回声消除的基本原理是以扬声器信号与由它产生的多路径回声的相关性为基础,建立远端信号的语音模型, 利用它对回声进行估计,并不断修改滤波器的系数,使得估计值更加逼近真实的回声。然后,将回声估计值从 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-02-05 04:04:46下载
    积分:1
  • Android 3D 走马灯
    翻译 maninwest@Codeforge  作者:Igor Kushnarev@ Codeproject如何在安卓平台上实现 3D 走马灯准备工作首先决定定义走马灯行为的参数。例如,走马灯中项目的最小数量。如果只有一两个项目不好看,是不是?考虑到性能问题,我们得定义最大项目数量。我们还需要走马灯的最大θ 角度、里面的项目以及当前选择的项目,项目是否会被反射等。让我们在 attrs.xml 文件中定义: 走马灯项目类为了简化走马灯项目,我创建了CarouselImageView:public class CarouselImageView extends ImageView implements Comparable { private int index;
    2022-04-28 20:52:39下载
    积分:1
  • 4013724
    本程序是对V-BLAST系统及其检测算法的仿真,可采用BPSK,QPSK,16QAM,64QAM调制,检测算法为ML,MM(This program is to simulate the V-BLAST system and its detection algorithm, which can be modulated by BPSK,QPSK,16QAM,64QAM, and the detection algorithm is ML,MM.)
    2019-03-28 05:10:23下载
    积分:1
  • android 下拉刷新控件
    资源描述android下拉刷新控件,开发常用控件,很实用
    2023-03-28 12:30:04下载
    积分:1
  • 远程视频监控
    【核心代码】 public interface CameraSource {  static final String LOG_TAG = "camera";  /**  * Open the camera source for subsequent use via calls to capture().  *   * @return true if the camera source was successfully opened.  */  boolean open();  /**  * Close the camera source. Calling close on a closed CameraSource is  * permitted but has no effect. The camera source may be reopened after  * being closed.  */  void close();  /**  * The width of the captured image.  *   * @return the width of the capture in pixels  */  int getWidth();  /**  * The height of the captured image.  *   * @return the height of the capture in pixels  */  int getHeight();  /**  * Attempts to render the current camera view onto the supplied canvas.  * The capture will be rendered into the rectangle (0,0,width,height).  * Outstanding transformations on the canvas may alter this.  *   * @param canvas the canvas to which the captured pixel data will be written  * @return true iff a frame was successfully written to the canvas  */  boolean capture(Canvas canvas);  boolean saveImage(String savePath, String fileName); }
    2013-12-04下载
    积分:1
  • 平衡车
    #include       //定义支持库文件 AF_Stepper motor(48, 2);   //定义步进电机对象,2号步进电机步数值是48 void setup() {               Serial.begin(9600);           //  设置串行数率在 9600 bps        Serial.println("Stepper test!");      motor.setSpeed(10);  // 电机每分钟要转动10步            motor.step(100, FORWARD, SINGLE);   //电机向前单相励磁方式转动100步         motor.release();        delay(1000); } void loop()  {        motor.step(100, FORWARD, SINGLE);         motor.step(100, BACKWARD, SINGLE);      motor.step(100, FORWARD, DOUBLE);   
    2022-07-17 20:05:53下载
    积分:1
  • vgprznb3
    多载波以及扩频通信系统相关的书,主要内容有OFDM以及多载波CDMA,偏重于工程感念,理论性不是很强(Multicarrier and spread spectrum communication system related books, including OFDM and multicarrier CDMA, focus on engineering perception, the theory is not very strong)
    2019-03-27 22:27:57下载
    积分:1
  • GestureDemo
    手势demo,Android,可以看看,还文件太短?( Gestures demo, Android)
    2015-12-08 14:51:40下载
    积分:1
  • andriod 仓库管理 毕业设计
    本项目是一个仓库管理的安卓毕业设计项目源码,已升级到 andriod studio 3.5 只是初步了实现了单机的仓库管理操作,可以对商品、客户、供应商信息进行简单的增删改查,也可以简单的进行库存管理,在实用性方面做的比较差强人意,不过可以修改一下作为自己的毕业设计。本项目包括安卓客户端源码、一个26页的毕设报告、一个开题报告,本项目是一个简单的安卓仓库管理系统模型,不要指望有多高的实际应用性。不过应付一般的本科专科水平的毕业设计完全没有问题。编译版本2.3.3编码GBK,源码有简单的注释。也可以作为安卓新手练习SQLite使用的例子。管理员默认用户名密码都是javaapk
    2019-09-15下载
    积分:1
  • cycledemotwo
    制作一个在Android手机中用的圆形滑动菜单,像老式电话机一样的操作排列方式,有旋转效果。这仅是一个Android菜单,并不包括其它复杂的功能,有兴趣的下载源码包研究一下。(Making a circular slide Android phones using the menu, the same operation as the old-fashioned telephone arrangement, a rotating effect. This is just an Android menu does not include other complex functions, are interested in downloading source package look.)
    2014-04-17 13:44:02下载
    积分:1
  • 696518资源总数
  • 106164会员总数
  • 18今日下载