編輯:關於Android編程
/**
* 獲取設備采用的時間制式(12小時制式或者24小時制式)
* 注意:
* 在模擬器上獲取的時間制式為空
*/
private void getTime_12_24(Context context){
ContentResolver contentResolver = context.getContentResolver();
String time_12_24 = Settings.System.getString(contentResolver,Settings.System.TIME_12_24);
if(time_12_24!=null&&"24".equals(time_12_24)){
System.out.println("24小時制式---> time_12_24="+time_12_24);
}
if(time_12_24!=null&&"12".equals(time_12_24)){
System.out.println("12小時制式---> time_12_24="+time_12_24);
}
}
安卓圖片加載之使用universalimageloader加載圓形圓角圖片
前言話說這universalimageloader加載圖片對搞過2年安卓程序都是用爛了再熟悉不過了,就是安卓新手也是百度就會有一大堆東西出來,今天為什麼這裡還要講使用un
Android學習筆記(二)App工程文件分析
App工程文件分析關於如何創建一個最簡單的Android App請參照鏈接:《 Android學習筆記(一)環境安裝及第一個hello world 》 http://ww
Android studio出現Error:Unable to tunnel through proxy. Proxy returns HTTP/1.1 400 Bad Reques的解決辦法
最近更新了一下Android Studio,在導入新項目之後出現Error:Unable to tunnel through proxy. Proxy returns &
android使用自定義字體
前言 Android有自己的默認字體,但是有時候我們並不想使用它的默認字體,我們想使用諸如楷體,隸書等字體,那麼該怎麼去做呢?本文就是說明該如何使用