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-01
電腦網路和Internet之核心網路,電腦網路internet1.網狀的路由器路由器的連結組成了網路的核心。任何一個路由器,或者某條線路掛掉,但是網路還是通的,這是internet的一個特性。data到底是怎麼傳輸的?1)circuit switching專有線路,就像電話一樣,每一條都有一個線路。2)packet-switching封包機制:就是data分成一個一個的包送資料。1.1 circuit switching首先要做一個end to end,通過資源的分配,把他們串連起來。
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-29
Android中過場動畫,Android過場動畫 overridePendingTransition(R.anim.slide_in_right,R.anim.slide_out_left);第一參數為進入的動畫第二參數為退出的動畫進入的動畫slide_in_right.xml<?xml version="1.0" encoding="utf-8"?><translate
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-29
Volley架構設定sessionid,volleysessionid(偷懶,寫簡略點)自訂一個Request類public class MyRequest extends Request<JSONObject> 儲存上一次串連的sessionid@Overrideprotected Response<JSONObject> parseNetworkResponse(NetworkResponse response) {try{Map<String,
Time of Update: 2016-07-22
Driving the Activity Lifecycle,drivinglifecycleBefore Robolectric 2.2, most tests created Activities by calling constructors directly, (new MyActivity()) and then manually calling lifecycle methods such as onCreate(). Also widely used were a
Time of Update: 2016-07-04
android擷取其他應用許可權(修改狀態),android許可權這兩天老大發話說要我研究一下安卓安全軟體的功能,先抽取了一個小模組,研究許可權管理 一開始就去packagemanager 去看發現有幾個方法:就先去看了一下IPackagemanager 裡面的方法:有很多 這裡我之列出跟許可權有關的 PermissionInfo getPermissionInfo(String name, int flags);
Time of Update: 2016-06-30
sqlite的基本使用,sqlite使用一:基本操作1繼承SQLiteOpenHelper public class UserSqliteOpenHelper extends SQLiteOpenHelper { private static final int versionNo = 1; public UserSqliteOpenHelper(Context context) { super(context, "user.db",
Time of Update: 2016-06-24
[android] android項目架構,android項目架構準備步驟:1.建立工程(設定版本相容,最低相容版本)2.匯入常用jar包,(處理字串和加密用的jar檔案)Commons Lang,Commons Codeccommons-codec.jar主要是用來加密的MD5 //common-codec.jar MD5加密 DigestUtils.md5Hex("12345"); //common-lang.jar 字串判斷,空
Time of Update: 2016-06-22
android 廣播分類,android廣播安卓廣播分為兩類:1.普通廣播,
Time of Update: 2016-06-21
設定Textview最大長度,超出顯示省略符號,textview省略符號<TextView android:id="@+id/tvUserNameUgcListItem" android:layout_height="@dimen/dp45" android:layout_width="wrap_content" android:text="何問起
Time of Update: 2016-06-22
安卓動態調試七種武器之離別鉤 – Hooking(下),安卓hooking0x00 序隨著Mobile Security越來越火,各種調試工具也都層出不窮,但因為環境和需求的不同,並沒有工具是萬能的。另外工具是死的,人是活的,如果能搞懂工具的原理再結合上自身的經驗,你也可以創造出屬於自己的調試武器。因此,筆者將會在這一系列文章中分享一些自己經常用或原創的調試工具以及手段,希望能對國內Mobile Security的研究起到一些催化劑的作用。 目錄如下:安卓動態調試七種武器之長生劍 -
Time of Update: 2016-06-21
java中常用的類型轉換,java常用類型轉換1.將字串轉換成整數(String--->int)方法一: (1) int i = Integer.parseInt(String s); 其中(1)其實就是我們經常用到的將s轉換為10進位得數,其實預設是調用了 int i =Integer.parseInt("123",10); (2) i = Integer.
Time of Update: 2016-06-21
GridView的各種屬性,GridView屬性 <GridView android:id="@+id/movie_list" android:layout_width="906dp" android:layout_height="654dp" android:layout_marginLeft="230dp" android:layout_marginTop="110dp"
Time of Update: 2016-06-20
Linux0.11核心--fork進程分析,linux0.11核心--fork【著作權,轉載請註明出處。出處:http://www.cnblogs.com/joey-hua/p/5597818.html 】 據說安卓應用裡通過fork子進程的方式可以防止應用被殺,大概原理就是子進程被殺會向父進程發送訊號什麼的,就不深究了。首先fork()函數它是一個系統調用,在sys.h中:extern int sys_fork ();// 建立進程。
Time of Update: 2016-06-20
Linux0.11核心--記憶體管理之2.配合fork,linux0.11fork【著作權,轉載請註明出處。出處:http://www.cnblogs.com/joey-hua/p/5598451.html 】 在上一篇的fork函數中,首先一上來就調用get_free_page為新任務的資料結構申請一頁記憶體,在memory.c中:/** 擷取首個(實際上是最後1 個:-)空閑頁面,並標記為已使用。如果沒有空閑頁面,* 就返回0。*/////
Time of Update: 2016-06-09
React Naitve Android增加本地圖片,將圖片檔案 UePbdph.png 放入與index.android.js的同目錄中,在index.android.js中引入:<Image source={require('./UePbdph.png')} style={styles.thumbnail}/>環境:react版本:15.0.2react-nativeb版本:0.26.2
Time of Update: 2016-06-09
Android 系統API實現資料庫的增刪改查和SQLite3工具的使用,androidsqlite3在《Android SQL語句實現資料庫的增刪改查》中介紹了使用sql語句來實現資料庫的增刪改查操作,本文介紹Android 系統API實現資料庫的增刪改查和SQLite3工具的使用。系統API實現資料庫的增刪改查相關代碼修改如下:package com.wuyudong.db.dao;import java.util.ArrayList;import
Time of Update: 2016-06-12
手勢互動GestureDetector的教程,互動gesturedetectorGsetureDetector互動過程觸屏的一刹那,觸發MotionEvent事件被OnTouchListener監聽,在onTouch()中獲得MotionEvent對象GestureDetector轉寄MotionEvent對象到OnGestureListenerOnGestureListener獲得該對象,根據該對象封裝的資訊做出合適的反饋內部類:兩個監聽器介面OnGestureListener:單擊類方法單擊