標籤:問題描述:在mac os x中安裝android開發環境後,當串連設別的時候,發現不能串連裝置,按說,mac os x是無需安裝驅動,也無需豌豆夾之類工具的。問題解決:需要將裝置的usb vender id加入到 .android/adb_usb.ini中,無法串連的裝置,一般都是國產手機。步驟如下:1.開啟終端,輸入:system_profiler SPUSBDataType 命令
標籤:/** * Created by seven_hu on 2015/9/21. *//**Given an array nums, write a function to move all 0‘s to the end of it while maintaining the relative order of the non-zero elements.For example, given nums = [0, 1, 0, 3, 12], after calling your
標籤:2.65int even_ones(unsigned x)要求:return 1 when x contains an even number of 1s; 0 otherwise. 假設int 有 w=32位。分析:最應該使用的是迴圈,但是迴圈語句不能使用。如果一個一個的寫成語句,需要32次;這裡使用二分法,那麼操作就變成了Log232 =5次。二分法蘊含了迴圈同時簡化了迴圈遍曆。如何使用二分法? 題目是判斷x中1的奇偶數,可以將x一分為2,前16位x1與後16位x2,x3=
標籤:referece to : http://blog.csdn.net/mybook1122/article/details/24978025這個網上搜尋,很多結果都是:AndroidManifest.xmlandroid:configChanges="keyboardHidden|orientation"但是,實際上很多手機上,這個根本不起作用。這是為什麼呢?因為,但多數人陳陳相因,文章直接轉,都沒有結果自己實踐。在低版本上,這個是可以起作用。在android 4.0
標籤:運行一個項目時在一個menu.xml檔案item屬性android:showAsAction 報錯 No resource identifier found for attribute ‘showAsAction‘ in package ‘android‘google了下,老外說是版本問題,showAsAction was added in API level 11要將API提升到11,添加 "android-support-v7-appcompat.jar"
標籤:1 為 Apple TV 開發 tvOS App Part http://swift.gg/2015/09/14/developing-tvos-apps-for-apple-tv-with-swift/2 推薦一本書,如果有一本書會讓我感歎自己沒有在大學時就度過,那就是《駭客與畫家》3 iOS非同步圖片載入最佳化與常用開源庫分析 http://ios.jobbole.com/82374/4