登录
首页 » Java » android 闪光灯的简单控制 例子源码下载

android 闪光灯的简单控制 例子源码下载

于 2014-11-03 发布
0 210
下载积分: 1 下载次数: 0

代码说明:

android 闪光灯的简单控制 例子源码下载

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

发表评论

0 个回复

  • 安卓日历源码下载
    android 日历
    2014-12-24下载
    积分:1
  • sift算法源码
    这是SIFT算法详解博文中附录2 http://blog.csdn.net/zddmail/article/details/7521424 源码包括高斯模糊实现,sift的实现细节
    2019-04-24下载
    积分:1
  • android 静态壁纸实例源码下载
    一款还不错的静态壁纸代码 核心代码:package com.example.wallpaperchange;import android.os.Bundle;import android.app.Activity;import android.app.AlarmManager;import android.app.PendingIntent;import android.app.Service;import android.content.Intent;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;import android.widget.Toast; public class MainActivity extends Activity { AlarmManager aManager; Button start,stop; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); start = (Button)findViewById(R.id.start); stop = (Button)findViewById(R.id.stop); aManager = (AlarmManager)getSystemService(Service.ALARM_SERVICE); //指定ChangeService组件 Intent intent = new Intent(MainActivity.this,ChangeService.class); //创建PendingIntent对象 final PendingIntent pi = PendingIntent.getService( MainActivity.this, 0, intent, 0); start.setOnClickListener(new OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub aManager.setRepeating(AlarmManager.RTC_WAKEUP, 0, 5000, pi); start.setEnabled(false); stop.setEnabled(true); Toast.makeText(MainActivity.this, "壁纸定时更换启动成功", 5000).show(); } }); stop.setOnClickListener(new OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub start.setEnabled(true); stop.setEnabled(false); aManager.cancel(pi); } }); } }
    2014-06-03下载
    积分:1
  • android 转盘中奖 实例源码下载(带声音的,效果不错,亲测通过)
    android 转盘中奖 实例源码下载(带声音的,效果不错,亲测通过)
    2014-05-23下载
    积分:1
  • SSO单点登录
    【实例简介】 XXL-SSO 是一个分布式单点登录框架。只需要登录一次就可以访问所有相互信任的应用系统。 拥有"轻量级、分布式、跨域、Cookie Token均支持、Web APP均支持"等特性。现已开放源代码,开箱即用。
    2021-09-28 00:31:11下载
    积分:1
  • Android应用源码之afinal框架实现图片的简单异步缓存加载.rar
    【实例简介】
    2021-09-07 00:31:13下载
    积分:1
  • 简单网络视频播放
    简单网络视频播放
    2013-07-13下载
    积分:1
  • android 异步 执行 任务 例子 附讲解
    Rules::The AsyncTask instance must be created in UI thread. .execute must be invoked on the UI thread.Never call  objMyTask.onPreExecute(), objMyTask.doInBackground(), objMyTask.onProgressUpdate(),  objMyTask.onPostExecute manually.The AsyncTask can be executed only once (an exception will be thrown if a second execution is attempted.)AsyncTask have Four Main Method... onPreExecute()  doInBackground() onProgressUpdate() onPostExecute()  onPreExecute-This method is called first when you start AsyncTask using objAsync.execute().And mostly this method is use for initializing dialog(ProgressDialog,CustomDialog) and showing. doInBackground-The main purpose of AsyncTask is accomplished by this method.Any non-UI thread process is running in this method.Such as Rss Feed Reader,Image and video Uploading and Downloading.You cant handle your View in this method.Because this method is non-UI thread.While any background process is running if you want to handle UI therea are  onProgressUpdate method. after completion of process this method send result to OnPostExecute. onProgressUpdate-While backgrounding task is running ,you can handle your UI using this method .Such as status of downloading or uploading task.and this method is called from  doInBackground.Using publishProgress() you can call onProgressUpdate method to update UI while process is running. onPostExecute -This method is called after the background computation finishes.The result of background process in passed in this method as parameters.And now you can dismiss progress dialog ,to indicate that background task is completed. You can cancel AsyncTask using objAsyncTask.cancel().then you just check in doInBackground, if (isCancelled()) { break; } else {        //continue... } See this Image For more Clear.
    2013-07-05下载
    积分:1
  • Android 下 View Pager 显示 远程网络图片 例子
    Android 下 View Pager 显示 远程网络图片 例子
    2013-07-05下载
    积分:1
  • SpringMvc+Spring+Mybatis+Maven整合示例源码
    SpringMvc Spring Mybatis Maven整合示例源码
    2015-05-20下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载