![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
yihuangol
这个作者很懒,什么都没留下…
展开
-
native学习六(JNI访问java类方法)
1、Animal.java package com.example.demo; import com.example.demo.utils.Logger; /** * author : huangyi * date : 2020/2/10 * desc : */ public class Animal { public final static String TA...原创 2020-02-17 02:58:01 · 128 阅读 · 0 评论 -
native学习五(JNI访问java类字段)
1、MainActivity.kt class MainActivity : AppCompatActivity() { private val TAG = "MainActivity" var strings = arrayOf("apple", "pear", "banana") override fun onCreate(savedInstanceState...原创 2020-02-17 02:24:01 · 279 阅读 · 0 评论 -
native学习四(JNI中引用类型转换)
1、MainActivity.kt class MainActivity : AppCompatActivity() { private val TAG = "MainActivity" var strings = arrayOf("apple", "pear", "banana") override fun onCreate(savedInstanceState...原创 2020-02-17 02:02:55 · 296 阅读 · 0 评论 -
native学习三(JNI中字符串类型转换)
java传递字符串到jni 1、JNIString.kt package com.example.demo.jni /** * author : huangyi * date : 2020/2/10 * desc :字符串操作 */ class JNIString { external fun callNativeString(str: Stri...原创 2020-02-17 01:49:20 · 287 阅读 · 0 评论 -
native学习二(JNI中基础数据类型)
1、MainActivity.kt class MainActivity : AppCompatActivity() { private val TAG = "MainActivity" var strings = arrayOf("apple", "pear", "banana") override fun onCreate(savedInstanceState...原创 2020-02-17 01:30:57 · 699 阅读 · 0 评论 -
native学习一(动态库的函数注册)
1、JNIDynamicLoad.java package com.example.demo.jni; /** * author : huangyi * date : 2020/2/9 * desc :jni动态注册 */ public class JNIDynamicLoad { static { System.loadLibrary("dynam...原创 2020-02-17 01:22:38 · 214 阅读 · 0 评论 -
native学习
一、在Native层返回字符串 1、MainActivity.kt package com.guide.test import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.util.Log import kotlinx.android.synthetic.main.act...转载 2019-07-10 17:38:41 · 635 阅读 · 0 评论