开发工具:
文件大小: 1mb
下载次数: 0
上传时间: 2016-03-21
详细说明: //--------Exception---------------- private native void ExceptionDemo(); private native void FatalErrorDemo();//一般调试时使用 //-----c调用java成员函数--------- private native void AccessStaticMethodDemo(Dummy p); private native void AccessInstaceMethodDemo(Dumm y p); //------c调用java数据成员------------ private int intF; private String strF; private int[] intArrF; private Dummy dummyF; private static int sintF = 111; private static String sstrF = "static str"; private static int[] sintArrF = {1,2,3}; private static Dummy sdummyF = new Dummy(333); private native void AccessStaticFiledDemo(); private native void AccessInstanceFiledDemo(); //------------数组------------- private native void GetArrayLengthDemo(double[] p1,Dummy[] p2,int[][] p3); //此代码有问题,错误写法仅供参考 private native void IllegalDirectAccessDemo(int[] p); private native Dummy[] NewObjectArrayDemo(Dummy p); private native int[] NewIntArrayDemo(); private native Dummy GetSetObjectArrayDemo(Dummy[] p1,Dummy p2); private native void GetReleaseIntArrayDemo(int[] p); private native void GetSetIntArrayRegionDemo(int[] p1); //-----类实例------ private native Contact GetObjectClassDemo(Contact p); private native void IsInstanceOfDemo(); private native Contact AllocObjectDemo(); private native Contact NewObjectDemo(String name,int age); private native Contact NewObjectADemo(String name,int age); private native Contact NewObjectVDemo(String name,int age); //-----类jclass----- private native void findClassDemo(); private native void GetSuperClassDemo(); //---继承关系判断-- private native void IsAssignableFromDemo(); //-----全局 弱引用 局部----- private native void referenceAssignmentAndNew(String p); private native void localReference(String p, boolean b); private native void globalReference(String p, boolean b); private native void weakReference(String p, boolean b); //----字符串处理 (java中编码为utf-16,android为utf-8),jni不能直接使用string---- private native String passStringReturnString(String string); //--基本类型--- private native int add(int a, int b); private native boolean passBooleanReturnBoolean(boolean b); private native byte passByteReturnByte(byte b); private native char passCharReturnChar(char c); private native short passShortReturnShort(short s); private native int passIntReturnInt(int i); private native long passLongReturnLong(long l); private native float passFloatReturnFloat(float f); private native double passDoubleReturnDouble(double d); ...展开收缩
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.