Tag

Native Development

1 views collected around this technical thread.

Tencent Music Tech Team
Tencent Music Tech Team
Feb 9, 2018 · Mobile Development

Understanding String Encoding in Android JNI: From Native Crash to Source Code Analysis

This article investigates an Android JNI native crash caused by misusing NewString(), examines why a custom UTF‑8‑to‑UTF‑16 conversion was used instead of NewStringUTF(), compares Dalvik and ART string encodings, reveals a Dalvik UTF‑8 conversion bug fixed in ART, and advises developers on encoding nuances across Android versions.

AndroidDalvikJNI
0 likes · 26 min read
Understanding String Encoding in Android JNI: From Native Crash to Source Code Analysis
Tencent Music Tech Team
Tencent Music Tech Team
Oct 28, 2016 · Mobile Development

New Features of Android Studio Native Development and How to Link Existing Native Code

Android Studio 2.2 introduces official native development support with CMake and ndk‑build integration, Gradle‑packaged .so libraries, LLDB hybrid debugging, enhanced C/C++ editing, easy linking of existing native code via IDE or build.gradle, new externalNativeBuild and abiFilters settings, and a concise CMake workflow.

CMakeGradleMobile Development
0 likes · 11 min read
New Features of Android Studio Native Development and How to Link Existing Native Code