Time of Update: 2015-04-23
標籤:android dispatchtouchevent 事件分發 響應定向觸摸事件
Time of Update: 2015-04-22
標籤:前言:”安得廣廈千萬間,大庇天下寒士俱歡顏“——杜甫。在帝都住的朋友們都可能會遇到租房子困難的問題(土豪請無視),找房子真是力氣活,還耗費時間,佔用我寶貴的寫部落格時間,沒辦法,誰讓咱沒錢還想住的好點,努力努力掙錢!!!以上發點牢騷,現在進入正題。 上一篇部落格《Bitmap那些事之記憶體佔用計算和載入注意事項》,寫了Bitmap基礎知識和使用Bitmap需要知道的注意事項,這一片部落格我會寫在Android應用中Bitmap的建立
Time of Update: 2015-04-22
標籤:問題描述: 我的嵌套是ViewPager-->ScrollView-->ViewPager. 首先最裡面的ViewPager水平滾動時總是會觸發最外層的ViewPager滾動,看了網上很多的解決辦法基本上是一樣的,需要自訂ViewPager。
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-22
標籤:android callback 一.簡介,例子 CallBack是回調的意思,"回呼函數"或者"回調方法"是軟體設計與開發中一個非常重要的概念,掌握"回呼函數"的思想對程式員來說(不管用哪種語言)是非常必要的。
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-23
標籤:關於音樂曲庫,對接的是百度音樂,會自動隨搜尋連結百度曲庫2.便捷聊天,採用xmpp基本架構。3.加入和整理了群聊天。4.分布式聊天,喜歡該專輯直接進入聊天,喜歡該音樂的進入聊天。5.採用興趣社交和陌生社交方式6.自動建立的群聊源碼下載:http://code.662p.com/view/8290.html 源碼下載:http://code.662p.com/view/8290.html詳細說明:1.關於音樂曲庫,對接的是百度音樂,會自動隨搜尋連結百度曲庫2
Time of Update: 2015-04-22
標籤:Happy Number2015.4.22 12:39Write 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 squares of its digits, and
Time of Update: 2015-04-23
標籤:valueanimator objectanimator 屬性動畫 直接上demo,用法都在程式的注釋裡了,首先上五渣,布局代碼:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
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
標籤:Creating automatic test suites for your application is a good way to make it robust. It allows you to work in a very agile way.Play tests are built using JUnit 4 or Selenium depending what you want to test.Writing testsThe
Time of Update: 2015-04-22
標籤:一、掛起當有電話進來或者鎖屏,這時你的應用程會掛起,在這時,UIApplicationDelegate委託會收到通知,調用 applicationWillResignActive 方法,你可以重寫這個方法,做掛起前的工作,比如關閉網路,儲存資料。C代碼 - (void)applicationWillResignActive:(UIApplication*)application{
Time of Update: 2015-04-22
標籤:android broadcastreceiver Android中的廣播大致有兩種:有序廣播和標準廣播。標準廣播是一種完全非同步執行的廣播,廣播發出後,廣播接收器幾乎都會在同一時刻接收到這條廣播訊息,因此它們之間沒有任何先後順序而言,這種廣播的執行效率較高,但是也以為這它是無法被截斷的。有序廣播是一種同步執行的廣播,廣播發出後,同一時刻只會有一個廣播接收器接收到廣播,當這個廣播接收器中的邏輯執行完畢後才會繼續傳播訊息。並
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
標籤: 在Archive項目時,出現了“Your build settings specify a provisioning profile with the UUID “”, however, no such provisioning profile was found”的出錯。一直提示指定UUID的provisioning profile找不到,感覺很奇怪。明明自己的provisioning
Time of Update: 2015-04-22
標籤:需要配置許可權 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> 判斷Android的WIFI與GPS狀態 private void checkWifiAndGpsStatus() {
Time of Update: 2015-04-22
標籤:1.反編譯APK檔案反編譯APK需要利用ApkTool工具,https://bitbucket.org/iBotPeaches/apktool/downloads http://ibotpeaches.github.io/Apktool/install/
Time of Update: 2015-04-22
標籤:localhost php 瀏覽器 軟體 網站 最近想學習php,想做個網站,於是選擇了appserv這款軟體搭建lamp環境,但是安裝完成之後開啟php檔案卻始終有錯誤,不是沒有顯示就是顯示源碼,於是上網去搜,真是嗶...了狗了,原來不能直接雙擊開啟php檔案,需要將檔案放在www目錄下,然後在瀏覽器輸入localhos
Time of Update: 2015-04-22
標籤:android如果一個activity在橫屏狀態下切換到豎屏狀態,是不是會把整個activity重新載入一遍呢?這樣的話,所有變數和方法都被初始化了,顯然,一般我們不想這樣。AndroidManifest.xmlandroid:configChanges="keyboardHidden|orientation"就是如果配置了這個屬性,當我們橫豎屏切換的時候會直接調用onCreate方法中的onConfigurationChanged方法,而不會重新執行onCreate方
Time of Update: 2015-04-22
標籤: 來源:HTTP://WWW.CNBLOGS.COM/GOODHACKER/P/3864680.HTMLANDROID應用安全防禦Android應用的安全隱患包括三個方面:代碼安全、資料安全和組件安全。1. 代碼安全 代碼安全主要是指Android apk有被篡改、盜版等風險,產生代碼安全的主要原因是apk很容易被反編譯、重打包。我們可以採用以下方法對apk進行保護:1.1 代碼混淆 代碼混淆可以在一定程度上增加apk逆向分析的難度。Androi