-
最近公司在做即时通讯 仿微信 QQ的
最近公司在做即时通讯 仿微信 QQ的
- 2014-10-17下载
- 积分:1
-
gallry输出视频每一帧图片
实现截取视频中每一帧图片在gallry上显示出来
- 2014-06-26下载
- 积分:1
-
android 动态添加listview的item及删除
android 动态添加listview的item及删除
- 2014-06-16下载
- 积分:1
-
Android 录制 H264视频并上传至服务器 例子源码下载
android h264视频采集,通过LOCALSOCKET上传到服务器上-android video capture and playback
- 2013-08-16下载
- 积分:1
-
android 各种Activity切换效果例子源码
android 各种Activity切换效果例子源码
- 2014-09-29下载
- 积分:1
-
基于stm32的室内环境监测系统设计及实现
用STM32f103zet6单片机做的室内环境监测系统,用到了LCD显示屏,光敏传感器,火焰传感器,红外遥控,烟雾传感器,高感度声音传感器,DHT11温湿度传感器等多个传感器模块综合,
- 2020-05-26下载
- 积分:1
-
Android记事本App
【实例简介】Android记事本App
- 2021-06-16 00:31:12下载
- 积分:1
-
android 手机上调用插件打开网页 示例代码
手机上调用插件打开网页
- 2015-03-13下载
- 积分:1
-
android 接收蓝牙数据绘制成波形
android 接收蓝牙数据绘制成波形
- 2021-05-06下载
- 积分: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