今天是校运动会,一大早外面就吵吵闹闹的,很是热闹,但是扰了我的清梦,感觉太不厚道了,呵呵。。。

今天无意之中上google看了下android的市场份额,一看大吃一惊,Android美国市场份额第三季增长6.5%达21.4%,排名第三,仅次于苹果的23.4%,但是android增长了6.5%,而其他不是下降就是保持,所以android还是很有前途的。

android的开发其实很简单,今天做了一个短信发送器和电话拨号器,感觉很好。尤其是在android中也使用MVC模式,加入进junit测试,输出日志,这些都给开发带来了很大的方便。junit测试环境的搭建:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hqb.action“ android:versionCode="1“ android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<uses-library android:name="android.test.runner" />
....
</application>
<uses-sdk android:minSdkVersion="6" />
<instrumentation android:name="android.test.InstrumentationTestRunner"
android:targetPackage="com.hqb.action" android:label="Tests for My App" />

</manifest>

之后创建Test测试类继承AndroidJunitTest类,就可以像ssh中一样编写要测试业务逻辑代码了。爽吧。。。

Log的日志功能就和syso一样,非常方便。

更多相关文章

  1. Android JNI打印c\c++日志信息
  2. Android 自动化测试(5)
  3. Android CTS(兼容性测试)
  4. Android的日志系统分层与logcat使用
  5. Android测试原理(二)
  6. Android中遍历文件夹、比较文件类型测试
  7. Android自动化测试之MonkeyRunner之MonkeyRunner(九)
  8. Android单元测试Unable to find instrumentation target package

随机推荐

  1. android studio导入类库
  2. android动画初级入门
  3. Android(安卓)面向对象编程 类与对象
  4. 关于Android按键处理
  5. Android中的SurfaceFlinger和Choreograph
  6. Android自定义action与permission!!!
  7. Android日志分类及查看过滤
  8. RoboGuice入门
  9. Android(安卓)触摸屏驱动代码分析(ADC 类
  10. Android(安卓)过滤器机制应用演示