-
环境监测的手机客户端
环境监测系统的手机客户端,在环境监测统中能够监测到环境的温度湿度的参数,并且当超过一定的值时会有警报的提示环境超过一定的范围。并发出警报。
- 2022-01-28 08:45:15下载
- 积分:1
-
Android 的文件上传
这个例子套用的是不错的
- 2022-05-24 02:48:47下载
- 积分: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 开发三剑客UML、模式与测试》源代码
《Android 开发三剑客UML、模式与测试》一书所有源代码.
- 2022-06-02 10:33:20下载
- 积分:1
-
android 图片放大缩小,简洁 附完整源码
android 图片放大缩小,简洁 附完整源码
- 2013-05-23下载
- 积分:1
-
ksoap2
android调用webservice.........(android use webservice)
- 2020-06-20 19:20:02下载
- 积分:1
-
android 自定义的Toast 例子源码下载
可以自定义Toast样式,改变颜色。
- 2015-04-21下载
- 积分:1
-
android拍照、录制视频并上传至服务器 实例下载(有图有源码)
拍照、录制视频、上传、服务器配置、预览视频等功能都实现了
- 2013-02-07下载
- 积分:1
-
Getting Started with the actual combat android development, recently many of my...
android开发入门与实战,近来很多朋友想在网上找相关的代码资料,我就买了此书并上传相关代码资料,希望我们多学习。-Getting Started with the actual combat android development, recently many of my friends want to find the relevant code for online information, I bought the book and upload the relevant code information, would like us to learn more.
- 2022-07-21 09:45:58下载
- 积分:1
-
Android Sensor 各种传感器的使用例子
本源码演示了Android Sensor 各种传感器的使用方法,比较基础的用法,例子中包括了方向传感器、磁场传感器、温度传感器、光传感器和压力传感器的各自调用用法等,相关代码如下:
public void onSensorChanged(SensorEvent event) {
float[] values = event.values;
StringBuffer sb = null;
int type = event.sensor.getType();
switch (type) {
case Sensor.TYPE_ORIENTATION:
sb = new StringBuffer();
sb.append("绕Z:" + values[0])
.append("
绕X:" + values[1])
.append("
绕X:" + values[2]);
ortationEdit.setText(sb.toString());
break;
case Sensor.TYPE_MAGNETIC_FIELD:
sb = new StringBuffer();
sb.append("X方向的角度:" + values[0])
.append("
Y方向的角度:" + values[1])
.append("
Z方向的角度:" + values[2]);
magneticEdit.setText(sb.toString());
break;
case Sensor.TYPE_TEMPERATURE:
sb = new StringBuffer();
sb.append("温度为:" + values[0]);
temeratureEdit.setText(sb.toString());
break;
case Sensor.TYPE_LIGHT:
sb = new StringBuffer();
sb.append("光强为:" + values[0]);
lightEdit.setText(sb.toString());
break;
case Sensor.TYPE_PRESSURE:
sb
- 2022-02-26 07:53:01下载
- 积分:1