新体能评定软件开发总结(一)

转载请注明来源。



html

加入新特性:

对话框,NumberPicker,专项训练入口界面,新兵、文职人员专栏,自动更新。android

总结问题:

  1. startActivityForResult(Intent intent,int requestCode)中requestCode要是天然数,不然返回后不会调用onActivityResult;
  2. 自定义class对象有本身单独的this,而Toast须要的this是Activity的this;
  3. Activity之间尽可能用Bundle传递参数,若是用SharedPreferences有时会增长维护困难,小数据量Bundle仍是能够胜任的;
  4. onCreate(Bundle)函数super(Bundle)必须在第一行,finish()函数super.finish()要最后调用;
  5. 通常来讲,各类View的点击事件的Listener要return true来告诉系统它被点击了;
  6. Adapter数据变更要notifyDatasetChange();
  7. StartActivity完成后父Activity自动finish(),除非是StartActivityForResult;
  8. Gradle包含外部工程库须要配置build.gradle和settings.gradle,好比我要包含的百度自动更新SDK文件夹,在build.gradle中加入:
dependencies {
        compile project(':BDIntegrationSDK_LibProject')
}

在settings.gradle中设置以下:app

include ':BDIntegrationSDK_LibProject'
project(':BDIntegrationSDK_LibProject').projectDir = new File(rootDir/mnt/sdcard2/.android-support/ BDIntegrationSDK_LibProject ) //存放库的路径

而后就着手把eclipse版本的整理成gradle版本的库。须要说明的是若是库放在工程app文件夹的同级目录里能够不用settings.gradle文件。 最后Lib包弄不进去,我干脆把库删掉,把所需文件挨个放工程里。
新体能评定软件使用手册:http://www.cnblogs.com/hele-two/p/penew_reference.htmleclipse

相关文章
相关标签/搜索