在具有JNI的android中使用libxml2 [英] use libxml2 in android with JNI

查看:118
本文介绍了在具有JNI的android中使用libxml2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用JNI在Android中创建了一个应用(因为我的代码的主要部分在C中).
现在,我需要解析我的应用程序中的xml.
正如我为我的应用程序选择libxml2一样,任何人都可以告诉我如何在我的android应用程序中使用libxml2吗?用于libxml解析器的.a文件,因此我们需要创建该库(.so/.a)并在您的应用程序中使用该库,您必须下载所有.c/.h/android.mk/Application.mk并进行构建libxml库(.so/.a)


I have created an app in android using JNI(as major part of my code is in C).
Now i am having a requirement to parse xml in my application.
As I have chosen libxml2 for my application, can any one please tell me how to use libxml2 in my android application ?

解决方案

since there is no prebuilt libxml.so/.a file for libxml parser, so we need to create the library (either .so/.a) and use that in ur application u have to download all the .c/.h/android.mk/Application.mk and just build the libxml library(either .so/.a)


这篇关于在具有JNI的android中使用libxml2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆