
AutoScreenOnOff 再升級
(Dansui.Taiwan) 前幾天花了半天加入 app 黑名單的功能後,評價還不錯,至少止血了。今天趁著明天颱風要來早點回家,花了一個多小時,把一個單純的 screen off widget 給加了進去。 花的時間比預料的快很多,因為本來在 notification 的互動中就已經有這個 intent 和處理邏輯在了,今天只是照著原本的 widget 再生一個出來,然後設定個 pendingIntent 給它,就收工了。 ...

(Dansui.Taiwan) 前幾天花了半天加入 app 黑名單的功能後,評價還不錯,至少止血了。今天趁著明天颱風要來早點回家,花了一個多小時,把一個單純的 screen off widget 給加了進去。 花的時間比預料的快很多,因為本來在 notification 的互動中就已經有這個 intent 和處理邏輯在了,今天只是照著原本的 widget 再生一個出來,然後設定個 pendingIntent 給它,就收工了。 ...
(ShinShan.Dream Lake.Taipei) 北部難得可以找到人少一點的景點。 之前來路跑竟然沒有看到。 ***** 最近又在寫小 app,但總是在畫面上卡關,一直無法很順利的進行。 今天早上起床,順手又改了幾個自己在使用上覺得不夠方便的地方, 然後,就是這麼自然地,在網路上逛到了如何解決自己試了很久都沒成功的功能。 ...

(富貴角.Taiwan) 剛剛試了一下谷歌的語音輸入,覺得有些時候應該蠻實用的。所以打算幫它在Lime HD中加個快速切換的功能。在Lime HD中原本就有開啟Google語音輸入法的方式,只是我覺得有點太麻煩了。原本的方式是: ...

(Leiden.Netherlands) IdeaVIM is a vim-like input plugin for intellij IDE, good for text editing but not so powerful if you want to use it for other IDE tasks, for example accessing menu actions by defining keyboard shortcuts. Fortunately, someone in Japan branched the source codes on GitHub, and wrote some tweaks to make it possible to configure all kinds of Intellij menu items to keyboard shortcuts as you wish in a config file. ...

(Geneve.Swiss) It’s such a pain to look for solutions for tasks on Android Studio. When can it be mature enough and more well documented for developers? I would like to write some test cases for my small app, but I couldn’t find a way for adding test cases into Android Studio project and have it run successfully. After wandering around on the internet for a long time, eventually I found a link that did helped me out (see reference below). As Google I/O 2013 video said, a new android build system made of gradle is released, which will be more flexible, more powerful, more etc, etc. However, currently, it ’s not well integrated into Android Studio. Some modification in Android Studio won’t be directly reflected in gradle build scripts. Well… then, how do I know when I should modify build scripts my self? And to write it by myself, I have to learn groovy first, because that’s the language Gradle used to write its build configuration files. How could I master these things in a short time… ...

I saw someone met the same problem on StackOverflow. Fortunately, I found out how to make it work. So leave some notes here: upgrade Gradle version to 1.6 Afterward, running “gradle build –stacktrace”, you will see that ANDROID_HOME environment variable is required to be set up. on Mac, add following line to your ~/.bash_profile export ANDROID_HOME="/Applications/Android Studio.app/sdk/" Now it should work like a charm!

(Central Park.New York) Strangely, it’s not possible to get current rotation angle in android directly, except for getting the fixed 4 rotation modes: 0, 90, 180, 270. In order to get precise rotation degrees instead of rotation modes, OrientationEventListener can be used. Once it’s implemented, you can get the rotation degree in onOrientationChanged(). It’s a lot easier than manipulating values from all the sensors like gyroscope, accelerator, etc. REF: ...

(Geneva.Swiss) It’s pain in the ass to use Android Studio now, since it’s just published, which implies bugs appear every now and then, and you’re not sure it’s due to your misunderstanding of this IDE, or it’s really an issue. In addition, it’s relatively hard to find How-to answers comparing to ADT plugin with Eclipse. While trying to set up AdMob module in my project on Android Studio, it took me some time to fix some external library import errors that should be clearly mentioned in online AdMob doc, or even better, just integrate it into “Android Studio”. Isn’t Android Studio meant to make Android developers’ life easier? ...

Recently I spend most of my time reviewing documents on google’s android official site. It annoys me that the left side of the screen is always occupied by the content index; however, I just need to change articles once in a while by using it. It makes me feel bad that one third of the screen is wasted. In addition, it also distracts me while I was reading. As a consequence, I searched internet to see if there’s any extension, plugin, or script to help me hide the navigation panel when I want to do so. Out of luck, no. Maybe it’s too tiny to have someone work on it. ...

(Polderpark.Netherlands) I like the bright color in this picture. Although this photo was taken almost 10 years ago, the image quality is so great that I still can’t believe it’s taken by a cheap camera at that time. **** It’s easy to play and control local mp3 files by using AVAudioPlayer. However, if someone wants to stream playing mp3 files from the internet, he should try AVPlayer instead. Spend most of my time trying to find a remote mp3 for testing. Too bad that I just can’t even find one. Eventually, I gave up searching on the internet. Instead, I use following python command to create a simple http server locally on my mac: ...