Time of Update: 2016-08-03
我的android學習經曆39,android學習經曆39關於像第一次進qq一樣的那個漸層企鵝圖的製作 漸層動畫package com.moonweather.app.activity;import com.moonweather.app.R;import android.app.Activity;import android.content.Intent;import android.os.Bundle;import android.view.View;import android.view.
Time of Update: 2016-08-02
自訂PopupWindow,popupwindow 一、布局 <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content"
Time of Update: 2016-08-03
用xutils3.0進行下載,xutils3.0進行下載寫的例子比較簡單,是用xutils3.0來進行下載項目更新1.先通過網路請求,判斷版本是否要更新2.若要更新,則彈出一個彈窗,我用的是系統內建的Dialog,將下載的版本號碼及下載的內容提示展示出來3.當使用者點擊下載時,開始下載,下載時展示一個水平的進度條4.下載完成後,進度條消失,調用系統安裝apk如下是代碼 用到的xutils的jar包是3.3.32版本的 1 package com.item.weixin; 2
Time of Update: 2016-08-02
Android Studio 打包簽名發布New Key Store,androidstore Key store path:存放路徑Key Alias:別名 Validity(years):有效期間 Certificate:認證 First and Last Name: Organization Unit:組織單位 Organization:組織 City or Locality:城市或地區 State or
Time of Update: 2016-08-03
安卓 檔案下載,安卓檔案下載主要代碼也不多,使用原生的DownloadManage來實現該功能:AndroidManifest中添加許可權<uses-permission android:name="android.permission.INTERNET" /><uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />網路存取權限是必須的,
Time of Update: 2016-08-01
電腦網路和Internet之核心網路,電腦網路internet1.網狀的路由器路由器的連結組成了網路的核心。任何一個路由器,或者某條線路掛掉,但是網路還是通的,這是internet的一個特性。data到底是怎麼傳輸的?1)circuit switching專有線路,就像電話一樣,每一條都有一個線路。2)packet-switching封包機制:就是data分成一個一個的包送資料。1.1 circuit switching首先要做一個end to end,通過資源的分配,把他們串連起來。
Time of Update: 2016-07-30
Android 中BaseActivty,androidbaseactivtyBase介面IBaseActivitypackage liu.basedemo.base;/** * 基類介面 * Created by 劉楠 on 2016/7/28 0028.23:05 */public interface IBaseActivity { /** * 返回視圖的布局(setContentView中使用) * @return 返回視圖的布局 */ int
Time of Update: 2016-08-03
Android 通過httppost上傳文字檔到伺服器。,/** * 往伺服器上上傳文本 比如log日誌 * @param urlstr 請求的url * @param uploadFile log日誌的路徑 * /mnt/shell/emulated/0/LOG/LOG.log * @param newName log日誌的名字
Time of Update: 2016-07-30
[android] 練習使用ListView(二),androidlistview主要練習非同步任務和LrcCache緩衝package com.android.test;import java.io.InputStream;import java.net.HttpURLConnection;import java.net.URL;import com.nostra13.universalimageloader.core.ImageLoader;import
Time of Update: 2016-08-01
ios應用,今年最蛋疼的6月,IPV6!!,iosipv6剛剛蘋果大會結束,你是不是後悔沒去聽他的發布會,!!有錢麼你?iPV6 國人蒙蔽了,介是什麼鬼,經過兩三次的殘忍拒絕,我認真去研究了iPV6, 2.2 DetailsWe discovered one or more bugs in your app when reviewed on iPad running iOS 9.3.2 and iPhone running iOS 9.3.2 on both Wi-Fi
Time of Update: 2016-07-31
Android Studio建立AVD,Android Studio是專門為Android開發設計的IDE,比Eclipse開發Android更加方便、快捷。安裝Android Studio以後,想運行AVD,出現了下面的錯誤:提示沒有安裝HAXM,HAXM即Hardware Accelerated Execution Manager。HAXM使用基於 Intel(R) Virtualization Technology (VT)
Time of Update: 2016-07-31
[android] 練習使用ListView(三),androidlistview解決OOM和圖片亂序問題package com.android.test;import java.io.InputStream;import java.net.HttpURLConnection;import java.net.URL;import com.nostra13.universalimageloader.core.ImageLoader;import
Time of Update: 2016-07-30
mvp+retrofit+rxjava,retrofitrxjava引用"retrofit" : "com.squareup.retrofit2:retrofit:2.0.1", "retrofit-adapter" : "com.squareup.retrofit2:adapter-rxjava:2.0.1", "retrofit-converter" :
Time of Update: 2016-08-03
androidstudio報錯,androidstudio報今天換一下IDE,結果上來就給我報錯,androidstudiomessage:Error:java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0 Error:Execution failed for task
Time of Update: 2016-08-02
BUG Error:Execution failed for task ':app:dexDebug'.,executiondexdebugError:Execution failed for task ':app:dexDebug'.> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command
Time of Update: 2016-07-31
Android資料存放區之Sqlite採用SQLCipher資料庫加密實戰,sqlitesqlcipher前言: 最近研究了Android Sqlite資料庫(文章地址:http://www.cnblogs.com/whoislcj/p/5506294.html)以及ContentProvider程式間資料共用(http://www.cnblogs.com/whoislcj/p/5507928.html),我們清晰的知道Sqlite資料庫預設存放位置data/data/pakage/
Time of Update: 2016-07-30
Linux2.6核心--進程調度理論,linux2.6核心--調度從1991年Linux的第1版到後來的2.4核心系列,Linux的發送器都相當簡陋,設計近乎原始,見0.11版核心進程調度。當然它很容易理解,但是它在眾多可運行進程或者多處理器的環境下都難以勝任。正因為如此,在Linux2.5開發系列的核心中,發送器做了大手術。開始採用了一種叫做O(1)發送器的新發送器——它是因為其演算法的行為而得名的。它解決了先前版本Linux發送器的許多不足,引入了許多強大的新特性和效
Time of Update: 2016-07-30
Android 中MyApplication,myapplicationpackage liu.basedemo;import android.app.Activity;import android.app.Application;import java.lang.ref.WeakReference;import java.util.Stack;/** * MyApplication應用 基本 * Created by 劉楠 on 2016/7/28 0028.21:45 */public
Time of Update: 2016-07-29
關於SimpleAdapter和ListView結合使用,實現列表視圖的筆記,simpleadapter使用ListView需要為其添加適配器: 適配器有兩種:1.ArrayAdapter
Time of Update: 2016-07-29
github 添加項目,github項目下載git安裝 ->https://git-scm.com/downloads建立git目錄 在目錄下右鍵選擇Git Bash Here建立一個身份標識git config --global user.name 你的github使用者名稱 git config --global user.email 你的github所用的郵箱執行 git init拷貝項目到git目錄下在git裡產生公開金鑰檔案ssh-keygen -