Not so long ago (maybe just several years ago), people had succeeded to unify multiple devices into one. For example, cellphone is now multi-functional and has replaced many utilities we saw in the early years. People tended to squeeze everything into a small device, and that led to the what smartphone looks like today. We don't need map anymore since there's GPS and Google Maps. Post-it turns unpopular since there are multimedia notes taking apps. There are countless things that are replaced: cameras, music stations, radios, CDs, books, flashlights, compass, and so on so forth. People literally thought a smartphone could replace everything we have in life. One recent example is ASUS's Padfone. Continue reading The Uniform and Separation of Devices
This is just sad.. some Israel hacker hacked into my blog.. what is even worse is that it was probably hacked quite a long time ago, and I had no idea if they injected any malicious code.. geez, on what universe they would hack my other little but sweet blog.. they will get paid some day.. for sure.
The simplest way is to leverage the
adb shell to run
settings put global theater_mode_on.
settings put global theater_mode_on 1will turn on theater mode
settings put global theater_mode_on 0will turn off theater mode
And the following is the java code to turn on theater mode.
Process su = Runtime.getRuntime().exec("su"); DataOutputStream os = new DataOutputStream(su.getOutputStream()); os.writeBytes("settings put global theater_mode_on 1\n"); os.flush(); os.close();
So we can automated the theater mode through scripts.
Notice that the total time to get it effective is about 2 seconds, and it will pop up a long toast, followed by the dark screen. The whole takes around 10 seconds. Afterwards, if ambient mode is on, the device will get into ambient mode.
It can be done by either simply look at the "About" in Android Settings, or by the following command using
cat /system/build.prop /default.prop | grep -m 1 "ro.product.cpu.abi="
When I went back to China, I found this little NFC ring called "TiMER 2." The ring has two colors for men and women.
The ring is very cheap - under $15 on ebay. It's claimed to be IP68 so you can wear it under water. And the ring has two NFC tags, one under the little "diamond" (webpage said "SWAROVSKI diamond" and I could hardly believe so) and the other on the opposite side. Each tag has 138 bytes storage.
I bought it for its good looking as well as its two NFC tags. Tried their app and it literally sucks. The app sucks in both functionality and user interface. If you plan to get one, just use regular NFC reader/writer app to write/read the tags. I believe on the market there are far better apps doing what the TiMER app could do (e.g., unlock screen, store name card, store data).
I'm busy lately - mostly focusing on my presentation at MobiCom 2015. It was my first time presenting my work as a CS PhD in such a big conference (well, in any conferences). I spent almost 3 weeks to prepare for the presentation and potential questions people might ask. The story can be very long, and I'm gonna be as brief as possible. Continue reading My MobiCom 15' Presentation
Google changed its logo today!