Archives
If the debug session terminates unexpectedly when using the Flash Builder debugger to debug a Flash project in Firefox, this problem can be solved by going to about:config and changing dom.ipc.plugins.timeoutSecs from its default value to -1.
Since the short 1 is represented as 00 00 00 01 on big endian machines and 01 00 00 00 on little endian machines, it’s a rather straight forward matter to detect the endianness of a machine, by simply looking at how it stores a short. #include <stdio.h> int main() { unsigned short i [...]
If you’d like the Android emulator to store its temporary files in a directory different from /tmp/android (maybe you’re sharing your computer with someone else that needs to run the emulator and you both want to run it at the same time), then there’s unfortunately no other way to do it but to change it [...]
I recently wrote an article about calling C code from Java using JNI. Another way to call C code from Java is to use Java Native Access, which makes things significantly easier. First off, we’ll need to write the C library. Create a ctest.c file containing a simple helloFromC function: /* ctest.c */ #include [...]