简体   繁体   English

如何在现有的Android项目中集成Linphone

[英]How to Integrate Linphone in an Existing Android Project

I am new to Linphone and I am having problem Regarding integration of linphone to my android project. 我是Linphone的新手,我有问题关于linphone与我的android项目的集成。 As there are no enough Tutorial Regarding Linphone Libraries and How to Use it. 由于没有足够的关于Linphone库的教程以及如何使用它。 So I would Like to reguest to Provide me step by step guide to help me regarding Integration of linphonoe to my android project 因此,我想请一步一步向我提供有关linphonoe与我的android项目集成的帮助

Thanks in Advance 提前致谢

After doing lots of research on android linphone, I have published two tutorials and add an excel sheet to setup and change code of android linphone. 在对android linphone进行了大量研究之后,我发布了两个教程,并添加了一个excel表来设置和更改android linphone的代码。 To setup android linphone project, you need to have Mac/Linux System. 要设置android linphone项目,您需要拥有Mac / Linux系统。 Here are links:- 这是链接: -

  1. Android Linphone Tutorial-1 Android Linphone教程-1
  2. Android Linphone Tutorial-2 Android Linphone教程-2

Clone linphone-android project from git and build using android NDK R9. 从git克隆linphone-android项目并使用android NDK R9构建。 Build it on linux and before starting build, make sure that you have all the packages mentioned in README file. 在linux上构建它,在开始构建之前,请确保您拥有README文件中提到的所有软件包。 To build the project, just type: 要构建项目,只需键入:

# make

and after successful compilation, generate linphone SDK using following command: 编译成功后,使用以下命令生成linphone SDK:

# make linphone-sdk

It will generate a zip file congaining linphone.jar file and native .so modules in different directories for different architectures. 它将生成一个zip文件,它将linphone.jar文件和本机.so模块集成在不同的目录中,用于不同的体系结构。

Create a new android application project in eclipse, copy linphone.jar and other directories in libs directory under newly created android project, and refresh your project in eclipse. 在eclipse中创建一个新的android应用程序项目,复制linphone.jar和新创建的android项目下libs目录中的其他目录,并在eclipse中刷新你的项目。 It will automatically add linphone.jar and other native linux (android) modules. 它会自动添加linphone.jar和其他原生linux(android)模块。

You are good to go... import packages in your android activities use the API. 你很高兴...你的android活动中的导入包使用API​​。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM