Android JNI – String Operations

String OperationsNewString Constructs a new java.lang.String object from an array of Unicode characters. GetStringLength GetStringChars Returns a pointer to the array of Unicode characters of the string. This pointer is valid until ReleaseStringchars() is called. If isCopy is not NULL, then *isCopy is set to JNI_TRUE if a copy is made; or it is set to JNI_FALSE if no copy is made. ReleaseStringChars Informs the VM that the …

Continue reading Android JNI – String Operations

Advertisements

Android JNI – Object Operations

Object OperationsAllocObject Allocates a new Java object without invoking any of the constructors for the object. Returns a reference to the object. The clazz argument must not refer to an array class. NewObject NewObjectA NewObjectV Constructs a new Java object. The method ID indicates which constructor method to invoke. This ID must be obtained by …

Continue reading Android JNI – Object Operations

Android JNI – Class Operations, Exceptions and References

Class OperationsDefineClass Android does not use Java bytecodes or class files, so passing in binary class data doesn't work. FindClass The name argument is a fully-qualified class name or an array type signature. For example, the fully-qualified class name for the java.lang.String class is: "java/lang/String" ExceptionsThrow Causes a java.lang.Throwable object to be thrown. ThrowNew Constructs an exception …

Continue reading Android JNI – Class Operations, Exceptions and References

Discussion on CI System for Mobile Platforms

Background I started to know the concept of continuous integration (CI) when I was doing my Master's degree at NUS. However, only when I really applied this technology to our products development process, did I start to feel its huge values over the software development lifecycles, especially, when you are working in an agile environment. …

Continue reading Discussion on CI System for Mobile Platforms