-
51单片机+HC-06蓝牙模块+DHT11传感器+Android程序
51单片机+DHT11传感器:实时获取温湿度数据,这个可以放到实际的环境中去(例如:温室大棚),我主要是把它作为Android程序的数据源。
HC-06蓝牙模块:实现数据的传送。
Android程序:参考了网上的一个蓝牙开发源码和一个开源的画图工具,在它们的基础上进行开发(前人的功劳很大啊)。
- 2022-05-08 00:04:21下载
- 积分: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的图片浏览器
一个Android应用程序,能够实现网络图片异步加载,刷新,下拉刷新,图片缩放,一键分享功能。利用google公司最新开发包vooley进行网络通信,开发工具AndroidStudio
- 2022-02-03 19:16:32下载
- 积分:1
-
android 即录即播
android 录音,即录即播,对试验麦克风很有效果
- 2022-01-22 08:20:44下载
- 积分:1
-
android 时间轴 TimeLine例子
android 时间轴 TimeLine例子
- 2014-12-04下载
- 积分:1
-
基于LTC6804的STM32BMS管理系统代码
【实例简介】
- 2021-09-27 00:31:00下载
- 积分:1
-
android_SNS_jqm
用jquery mobile开发的Android移动社区客户端(Android mobile community client with Jquery mobile)
- 2020-10-20 14:07:24下载
- 积分:1
-
Medo
收入和支出。用不同类型的图表绘制。
- 2022-03-18 18:00:16下载
- 积分:1
-
Android 屏幕录制功能的实现及源码范例
具体实现步骤:
1.申请权限,具体来说就是在 AndroidManifest 中添加权限
2.获取 MediaProjectionManager 实例,MediaProjectionManager 也是系统服务的一种,通过getSystemService来获取实例。
3.发起屏幕捕捉请求
4.获取 MediaProjection,通过onActivityResult返回结果获取MediaProjection。
5.5 创建虚拟屏幕,实际录制内容的是屏幕镜像,通过MediaRecorder将屏幕内容录制下来,并且存成 video 文件。
- 2022-06-20 08:40:50下载
- 积分:1
-
安卓手机通过蓝牙控制单片机小车
本套源码是利用手机的蓝牙,利用Socket套接字,分别将控制小车前进(go)、后退(back)、左转(left)、右转(right)、停止(stop)等字符串通过蓝牙发给串口。然后再单片机端,用一个蓝牙模块接收手机发来的数据通过51的串口发送给单片机,进而驱动小车的运动!
- 2022-03-21 06:45:55下载
- 积分:1