Time of Update: 2015-04-23
標籤:android socket 伺服器 網路 下面實現安卓作為用戶端實現網路聊聊天室的執行個體:建立安卓用戶端:<p> </p><p>package com.example.mysocketclient;</p><p>import
Time of Update: 2015-04-24
標籤:這次可以和看了很不爽的sharedpreferences 說再見了。用法太噁心了。儲存屁大點資料還用 commit 。吐槽結束,上代碼LocalStorage.javaimport java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import
Time of Update: 2015-04-24
標籤:import android.annotation.SuppressLint;import java.security.SecureRandom;import javax.crypto.Cipher;import javax.crypto.KeyGenerator;import javax.crypto.SecretKey;import javax.crypto.spec.IvParameterSpec;import javax.crypto.spec.SecretKeySpec;/**
Time of Update: 2015-04-23
標籤:ios uitableviewcell 如題所示,本程式是使用非AutoLayout寫的UITableView自適應行高,之後筆者將會寫一個基於AutoLayout的自適應行高的小demo。 PS:此小程式只適用於剛接觸IOS的小朋友,只用做參考,毫無技術性,大神勿噴。上代碼://UITableViewCell#import <UIKit/UIKit.h>@interface commentaryCell :
Time of Update: 2015-04-23
標籤:1、WebApp全螢幕模式:<meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no,minimal-ui">注意:viewport 後面加上 minimal-ui 在safri 體現效果<meta name="apple-mobile-web-app-capable"
Time of Update: 2015-04-23
標籤:http://blog.csdn.net/chenfeng0104/article/details/7088138在Android開發中,需要錄音並發送到對方裝置上。這時問題來了,手機常會是GPRS、3G等方式上網,所以節省流量是非常關鍵的,使用Speex來壓縮音頻檔案,可以將音頻壓檔案小數倍。1.去Speex官網下載最新Speex源碼。2.建立一個新的應用(我建立的應用程式名稱為Audio),並建立一個jni目錄($project/jni)。3.把speex源碼目錄下的libspeex和
Time of Update: 2015-04-22
標籤:leetcode 經典面試題 題目Write an algorithm to determine if a number is “happy”.A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the
Time of Update: 2015-04-23
標籤:一、傳遞資料結構定義及公用單元代碼:需要引入單元:winapi.windows;1、聲明部分//使用者庫及主程式間資料共用相關 TAuthOnlineInfo = record IsDLL: Boolean; IsOnline: Boolean; IsAuth: Boolean; IsToDB: Boolean; CurDBID: Integer; UserName: string[255]; end;
Time of Update: 2015-04-22
標籤:android studio svn svn.exe 我們有新的項目要進行開發了,一直想用用android studio。所以在新項目上,果斷使用。這裡是我將android studio項目share到svn倉庫的全過程。後期再考慮是否要搭建公司的git伺服器。一步步來吧。1.設定svn的用戶端路徑:(我的本地svn用戶端是之前就已經安裝好了,所以這裡面是預設的狀態)(
Time of Update: 2015-04-23
標籤: Android開發學習總結(一)——搭建最新版本的Android開發環境 最近由於工作中要負責開發一款Android的App,之前都是做JavaWeb的開發,Android開發雖然有所瞭解,但是一直沒有搭建開發環境去學習,Android的更新速度比較快了,Android1.0是2008年發布的,
Time of Update: 2015-04-23
標籤: 放眼整個手機消費市場。 目前隨著智能手機電容屏市場的大力發展,電容觸摸玻璃的平安效能越來越被歐盟,日本等國家和地區所重視。韓國生產的iphon鋼化玻璃膜成為一種新型技術,用在電容屏上可以防止玻璃因外部撞擊而發生片段飛散,能達到歐盟和日本對ROHS嚴格要求。不一般的玻璃沉澱在硝酸鹽大幅度的增加了玻璃外表的密度同時也增加強度,密度的增加能提高的防刮能力。
Time of Update: 2015-04-21
標籤:因為要使用開源 androidannotations 註解,發現eclipse沒有Annotation Processin 解決辦法: 需要配置外掛程式:http://download.eclipse.org/releases/juno Annotation
Time of Update: 2015-04-22
標籤:android 圖片 colormatrix 圖片特效 原圖:效果1:效果2:效果3:效果4:查看官方的API,其中ColorMatrix的說明如下:5x4 matrix for transforming the color+alpha components of a Bitmap. The matrix is stored in a
Time of Update: 2015-04-21
標籤:webview 視頻支援橫屏 裝置豎屏 介面豎屏 裝置旋轉 ios裝置支援旋轉的方法: 1、修改工程的info.plist中"Supported interface orientations"的值(一般在工程的Taget-> General ->
Time of Update: 2015-04-22
標籤:全屏在Activity的onCreate方法中的setContentView(myview)調用之前添加下面代碼requestWindowFeature(Window.FEATURE_NO_TITLE);//隱藏標題getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);//設定全屏 橫屏(兩種)1、修改Activity的onRe
Time of Update: 2015-04-22
標籤:When you work in a team, different developers will use different configuration keys in theirapplication.conf. For example, the log level, some database configuration… This generally leads to recurrent conflicts when you commit the file
Time of Update: 2015-04-22
標籤:android擷取應用所佔記憶體大小private void getRunningAppProcessInfo() { mActivityManager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE); //獲得系統裡正在啟動並執行所有進程
Time of Update: 2015-04-22
標籤:ios nstimer 倒計時 #import "ViewController.h"#import "QSSDateHelper.h"@interface ViewController ()@property (nonatomic,strong) UIButton *btn;@property (nonatomic,assign) BOOL
Time of Update: 2015-04-22
標籤:android如果一個activity在橫屏狀態下切換到豎屏狀態,是不是會把整個activity重新載入一遍呢?這樣的話,所有變數和方法都被初始化了,顯然,一般我們不想這樣。AndroidManifest.xmlandroid:configChanges="keyboardHidden|orientation"就是如果配置了這個屬性,當我們橫豎屏切換的時候會直接調用onCreate方法中的onConfigurationChanged方法,而不會重新執行onCreate方
Time of Update: 2015-04-22
標籤: 最近用ThinkPHP開發一個項目,本地開發測試完成上傳到伺服器後,第一次開啟正常,再重新整理頁面時就出現 “頁面調試錯誤,無法找開頁面,請重試”的錯誤,我就鬱悶啦,明明本地設定define(‘APP_DEBUG‘, false)