Permission handling should be simple, but not the case in Android. Or at least before you know a lot about it. This article aims to solve that problem. And we will use Anko here to make it better.
Articles
How to hide action bar in Android
ActionBar is good for UE, but sometimes we do want to hide it. Here we will see the ways to do it.
How to test Express.js with Jest and Supertest
I recently changed from Mocha, Chai to Jest. Pretty lovely experiences. It took a while to figure out the right way to test an express route, but when it works, it works like a charm. I share my experiences here, hope it helps. I love jest assertion function more than Chai, seems more concise to me.
Something about the animation state machine in Unity
Recently I finished my last paper for my study programm – Game Development, the final project is a 2D fighting game developed using Unity, I am responsible for anything related to the enemy (AI, state machine, animation tree, including Boss), openning cut scene, and a QTE(quick time event) system as well. We did a pretty…
How to install android apk and check its log
When you are developing some cross platform apps, React native, Phonegap, Kivy, Native script, etc. It’s very usual that you need to install the package to the real device, and it’s totally fine for you to manually install the compiled APK. But if you want more productivity, you need use the adb command. Let’s get a quick…
How to save a python object to disk and retrieve it later?
Objects are somethings which exists at run time, if we want to maintain its status across sessions, we need some intermediate technology such as serialization. With serialization you could flush the objects to the disk to make it persistent and deserialize it afterwards to convert it back from binary form to a runtime object.
How to use Valgrind on Windows
Valgrind is a famous tool to debug your memory leak, but what sad is it only supports Linux, yeah, not a perfect support even on Mac. But with the new Windows 10 Anniversary update, it’s happening. And works way much better than Mac with OS X. Let’s rock!
How to declare a function type variable in Typescript?
There are many types in typescript, but since we love callback functions in javascript, how do we declare them in typescript? Let’s take a look from the bottom to the top. And with along some practice thinking.
The fastest way to convert the binary into decimal using a table
Sometimes we need to match the binary number to the decimal number. But for people like me who is not that sensitive to binary, it seems they are all the same… So I need to write a table to match them. It is easy since binary has only 2 digits, 0 or 1. But the…








