http://stackoverflow.com/questions/21920308/how-to-dismiss-skscene
- 4月 17 週五 201516:21
How to dismiss SKScene? 關閉 取消 SKScene
http://stackoverflow.com/questions/21920308/how-to-dismiss-skscene
- 10月 11 週六 201403:46
android ndk 版本 下載 問題 哪個
有分成看作業系統位元來下載的X86-64
然後是看目標裝置的位元來下載X86-64
- 10月 11 週六 201403:42
[轉] 升級 Skype 後,我的登入畫面全走樣了?(格式排版亂掉、少了 CSS 檔、變無樣式網頁)skype 錯亂 畫面

http://atelier-wini.blogspot.tw/2013/12/skype-css.html
通常是更新 Skype 時發生這問題,目前看到是 Windows 7 使用者會碰上,但應該是任何作業系統都可能發生。
問題畫面擷圖
- 10月 11 週六 201403:40
[轉] 解决Excel数据导入sqlite中的中文乱码问题 亂碼 execl sql

http://blog.csdn.net/geekwangminli/article/details/8007114
最近公司让做一个地图定位系统,需要将山东省大中城市的经纬度写入到sqlite中,手工逐个写入很不现实,最好的方法是将网上的资料导入到sqlite中,我先将网上下载的资源保存成excel表格,再导入sqlite中,这时发现导入的中文数据都是乱码,原来是由于两个工具之间的编码不同造成的,几经周折,问题终于解决,先列出该步骤,以飨网友。
- 10月 11 週六 201403:34
[轉] Java Collections copy list
若想要複製 collections
那要用下列方法:
List<String> b =newArrayList<String>(a);
- 10月 11 週六 201403:32
[轉] Java - String.getBytes()的中文編碼問題 亂碼 中文
因為放到server上一直出現亂碼,但又不是db和網頁的問題,找了一下是程式中關於getByte()的問題。
- 9月 17 週三 201418:01
[轉] android 螢幕 亮度 開關 on off 調整 之二

一:只改变当前程序android屏幕亮度
(1)方法:
lp.screenBrightness 取值 0.0 -- 1.0 ※设定值(float)的范围,默认小于 0(系统设定)、0.0(暗)~1.0(亮) ※调用处理的地方,例如, Activity.onCreate()等等
代码:
WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.screenBrightness = 1.0f;
getWindow().setAttributes(lp);
注:1、b是一个浮点数 从0~1 ,表示亮度
2、当我们遇到把Activity做为子Activity潜入到TabActivity 或者 ViewGroup 类容器时,通常上面的方法设置无法取得成功。
- 9月 17 週三 201417:57
[轉] Android锁屏API-DevicePolicyManager介绍 鎖屏 鎖螢幕
- private final IDevicePolicyManager mService;
- mService = IDevicePolicyManager.Stub.asInterface(
- ServiceManager.getService(Context.DEVICE_POLICY_SERVICE));
- if (mService != null) {
- try {
- mService.lockNow();
- } catch (RemoteException e) {
- Log.w(TAG, "Failed talking with device policy service", e);
- }
- }
复制代码
- 9月 17 週三 201417:54
[轉] android 螢幕 亮度 開關 on off 調整 之一
http://stackoverflow.com/questions/9561320/android-how-to-turn-screen-on-and-off-programmatically
Before marking this post as a "duplicate", I am writing this post because no other post holds the solution to the problem.
I am trying to turn off the device, then after a few minutes or sensor change, turn it back on.
Turn Off Display Tests
I am able to turn off the screen using:
params.flags |=LayoutParams.FLAG_KEEP_SCREEN_ON;params.screenBrightness =0;
getWindow().setAttributes(params);I have been unable to turn off the screen using the wl.release() method.
Turn On Display Test
My first guess, as follows, does not work. Nothing happens, screen remains off.
params.flags |=LayoutParams.FLAG_KEEP_SCREEN_ON;params.screenBrightness =-1f;
getWindow().setAttributes(params);I also then tried to use wakelocks, with no success.
PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK,"tag");
wl.acquire();Finally I have tried the following, with no result.
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);All in all, I don't get any kind of error in the console for any of these methods. My test text "Screen should be on", is on the the screen when I turn on the device using the power button. This shows that the code should have ran. Please only answer if you have tested the code, it seems like many of the functions such as params.screenBrightness = -1, do not work as they should according to the sdk.
Thanks!
