自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

转载 Android SensorManager \ SensorEventListener

SensorManager extends Object java.lang.Object    ↳ android.hardware.SensorManager Class Overview SensorManager lets you access the device's sensors. Get an instance of this c

2014-12-30 16:31:48 1234

原创 Android Timer启动任务更新时间显示

我是Android应用开发新手,今天写一个小程序,在UI每隔一秒刷新一次时间显示。 我启动了timer一秒执行一次任务,内容即setText为当前日期时间值;发现报错,才知道,关于修改UI的内容只能够在主线程中进行,timer启动的新的线程是无法刷新UI的。 所以,需要handler来处理,程序如下: 这是一个UI mainActivity: package com.tcl.wat

2014-12-23 13:40:55 408

转载 Android之Handler用法总结

方法一:(java习惯,在android平台开发时这样是不行的,因为它违背了单线程模型) 刚刚开始接触android线程编程的时候,习惯好像java一样,试图用下面的代码解决问题    new Thread( new Runnable() { public void run() { myView.invalidate(); }

2014-12-23 13:37:00 288

转载 Interfaces in C# (For Beginners) Chetan Kudalkar, 10 May 2007

Introduction Interfaces in C # provide a way to achieve runtime polymorphism. Using interfaces we can invoke functions from different classes through the same Interface reference, whereas using virtu

2014-12-22 15:31:59 537

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除