原创 ionic 項目找不到cordova.js,安裝ngCordova插件,獲取手機信息

ngCordova是對Cordova的進一步封裝(我是由於創建項目是找不到cordova.js,於是就用了這個)主要用於獲取手機的一些信息,像相機,文件夾,網絡狀態等。1,首先安裝bower(包管理)npm(如果是淘寶鏡像cnpm)ins

原创 Android RxJava,RxAndroid,rxlifecycle2基本使用

Rx系列成熟已經很久了,許多項目也都用到了,也不解釋什麼了,小編在去年就get過了,一直沒有時間寫今天就簡單的介紹一下基本使用。 首先依賴 compile 'io.reactivex.rxjava2:rxandroid:2.0.1'

原创 ionic 環境搭建和修改包名和版本號

1,安裝Node.js   unix (IOS)系統命令 需sudo npm 2,注:由於GFW,很多插件下載不下來,我們可以使用淘寶鏡像來解決這個問

原创 EventBus 使用

compile 'org.greenrobot:eventbus:3.0.0'註冊:EventBus.getDefault().register(this);解除: @Override protected void onDest

原创 mave eclipse的使用配置

1,http://maven.apache.org/download.cgi下載maven2,解壓maven,在目錄apache-maven-3.5.2\conf(找到自己解壓後對應的目錄)下找到settings.xml,打開進行編輯 

原创 struts2 的配置使用

1,官網http://struts.apache.org/download.cgi#struts下載struts2, 解壓,找到struts-2.5.13-all\struts-2.5.13\apps\下的struts2-rest-sho

原创 RxAndroid 操作符,just,fromArray,interval,timer,map

just操作符:可傳入多個變量,多個變量整合到一個對象裏一次返回 int[] a = new int[]{1, 2, 3, 4}; String b="shabi" Observable.just(a,b).subscribe(new

原创 hubernate 的配置使用

1,下載hubernate,http://hibernate.org/選擇hubernate orm 選擇release,下載後解壓,主要用到lib下的required和jpa-..下的所有jar,或者maven引用遠程jar包 <

原创 android 視圖結構 呈現給用戶的視圖

Activity,DecorView,PhoneWindow和ViewRoot的作用和相關關係          1,Activity和Window 前者控制生命週期,window控制視圖,前者可以沒有後者那就相當於一個service,

原创 android Aidl 實現進程間通訊

1​,android 新建aidl 文件 刪除void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat, double aDouble, String aS

原创 kotlin 運算符?!!等及修飾符和var,val

1,?在 kotlin 很多對象是不能允許使用null的,所有使用?來讓對象是否允許爲null var a: String = null//錯誤 var a: String? = null//正確2,!!在標識不等於空時做操作  te

原创 MySql 配置和可視化工具Navicat使用

1,(1)https://dev.mysql.com/downloads/mysql/        或者官網選擇download--最下邊Community (GPL) Downloads--     

原创 Kotlin 基本使用獲取控件,map,list,遍歷,跳轉

1,不需要findbyid,直接用id名做操作即可自動引入import kotlinx.android.synthetic.main.activity_main.*<TextView and

原创 AndroidStudio 創建Kotlin項目

androidStudio3之前需要下載插件File——Settings——Plugins 裏搜索Kotlin 安裝重啓即可。AndroidStudio3 支持Kotlin 並自帶創建項目是選擇即可如下在創建activity是可以選擇Ko

原创 ionic 在mac上 運行和在模擬器上運行

1,在mac 上配置ionic環境,之前寫到過,點擊ionic環境搭建  還要安裝xcode必須2,配置完成後打開終端,輸入 sudo ionic platform add ios(可能提示輸入登錄密碼即可)3,添加完成後 輸入sudo