原创 android webview sdk app tutorial 01 界面

此文版權屬於作者所有,任何人、媒體或者網站轉載、借用都必須徵得作者本人同意! 界面效果如下: 完全使用代碼實現 import android.app.Activity; import android.content.Context; i

原创 ubuntu apt-get install locales 失敗處理

失敗信息: apt-get install locales 正在讀取軟件包列表... 完成 正在分析軟件包的依賴關係樹 正在讀取狀態信息... 完成 下列【新】軟件包將被安裝: locales 升級了 0

原创 android 7.1.1 開始 Prevent apps to overlay other apps via toast windows

細節參考:https://android.googlesource.com 內容如下: Prevent apps to overlay other apps via toast windows It was possible

原创 讀取 android /system/build.prop 的最簡單方法

此文版權屬於作者所有,任何人、媒體或者網站轉載、借用都必須徵得作者本人同意! import java.io.File; import java.io.FileInputStream; import java.io.IOException;

原创 視頻在 H5 遊戲中的應用

遷移到知乎了

原创 android 6.0 以下的 MediaPlayer 居然不能攜帶 http headers Referer

此文版權屬於作者所有,任何人、媒體或者網站轉載、借用都必須徵得作者本人同意! 今天測試 android MediaPlayer,發現居然發出的 http 請求不能攜帶 Referer,測試代碼如下: Uri uri = U

原创 ubuntu astah 對話框中文字體亂碼(方框)

ubuntu astah 對話框中文字體亂碼(方框) 原因,jre 關聯的 awt 字體無效,解決辦法: sudo apt-get install fonts-arphic-uming*

原创 gradle for android 自動找當前環境當前最高版本的 sdk 和 build tools

此文版權屬於作者所有,任何人、媒體或者網站轉載、借用都必須徵得作者本人同意! 文件 androidVersion.gradle //--------------------------- // tools function // see

原创 android 手機通過 usb 共享電腦網絡

此文版權屬於作者所有,任何人、媒體或者網站轉載、借用都必須徵得作者本人同意! 參考:How to set up reverse tethering over USB? 1、Connect Android device via USB.

原创 android 那些坑爹的 bug

此文版權屬於作者所有,任何人、媒體或者網站轉載、借用都必須徵得作者本人同意! android < 6.0 MediaPlayer 無法攜帶 http Referer header。 android 4.1.x 設亮度爲 0 會鎖屏(效果相

原创 android 開發環境準備 eclipse 篇

此文版權屬於作者所有,任何人、媒體或者網站轉載、借用都必須徵得作者本人同意! 1、下載 Eclipse IDE for Java Developers aria2c http://ftp.yz.yamagata-u.ac.jp/pub

原创 牛逼代碼收藏

1.  void set_bit(int &input_output, bool to_set, int left_shift). (來自 linz

原创 linux shell test manual

see: test, [, [[ SYNOPSIS test expression [ expression ] [[ expression ]] DESCRIPTION The test command checks for

原创 android 按原始數據讀出資源

res/drawable/listview_selector.xml 的內容如下: <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schema

原创 android bluetooth service uuid

#管理 ServiceDiscoveryServerServiceClassID_UUID = '{00001000-0000-1000-8000-