Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Start working on Linphone Android - Part 1

Linphone is free VoIP(Voice over Internet Protocol) phone and open source project for desktop computers, smartphones, tablets and web browsers which is developed by Belledonne Communications in France. Linphone was the first open source software to use the session initiation protocol (SIP) with VoIP. Using Linphone, we can do voice & video calling, chat, send files, etc.


I used Linux operating system to start working on Linphone Android. So, I will share all things to start working on Linphone step by step.

1. Install Linux/Ubutu 32 or 64 bit operating system.


Go to Ubuntu site to download: Ubuntu

2. Install Java.


Open “ubuntu software center” and search “java” and than install “Open JDK Java Runtime”.


3. Install Eclipse.


Open “ubuntu software center” and search “eclipse” and than install “Eclipse”.


4. Download Android SDK.


Go to android developer site: Android SDK and scroll down and then download .tgz extension file.


After completing download, right click on file and than press “extract here” option. Now you will get android-sdk-linux folder.

5. Install Android SDK Packages.


Go to android-sdk-linux folder than tools folder than copy the path till tools folder. For example:-

/home/znsoftech/Desktop/android/android-sdk-linux/tools

Now open terminal by using CTRL+ALT+T command or by searching: press super key(window key) than search “terminal” than open it.

Now type on terminal

$ cd /home/znsoftech/Desktop/android/android-sdk-linux/tools

press enter and than type

$ ./android

press enter and than select latest android API, tools and libraries according to your requirement.


Click on Install packages than accept License and than install.

6. Download Android NDK.


Go to android developer site: Android NDK and than download android ndk(in .bin format) according to your system(32/64 bit). After completing download, go to download directory(folder) in terminal and than execute following commands:

$ chmod a+x Android-ndk-r10c-darwin-x86_64.bin
$ ./android-ndk-r10c-darwin-x86_64.bin

7. Edit .bashrc file


Open new terminal and type

$ ~/.bashrc

than add tools, platform tools, android ndk path and emulator command(If you are using 32 bit operating system) to bashrc file

export PATH=${PATH}:/home/znsoftech/Desktop/android/android-sdk-linux/tools
export PATH=${PATH}:/home/znsoftech/Desktop/android/android-sdk-linux/platform-tools
export PATH=${PATH}:/home/znsoftech/Desktop/android/android-ndk-r10d
export ANDROID_EMULATOR_FORCE_32BIT=true


Save and close file.

8. Setting up an Android Virtual Device.


Open terminal and type:

$ android avd

hit enter and add a device to launch emulator. Add DNS server setting options, read here: Warning no dns servers found

9. Install ADT plugin on Eclipse.


Open Eclipse than go to Help option and than select “Install new Software...” option. Click on Add button and than type following things:

Name : ADT Plugin
Location : https://dl-ssl.google.com/android/eclipse/

Click on OK button and wait..than select “Developer Tools” check box and than next->next->accept license->OK

After restarting eclipse, add sdk and ndk location in eclipse(Window -> Preferences).




Till now, all android project environment is set. Now, we need to install sum more libraries for Linphone android project.

10. Install Libraries and Tools for Linphone.


run all commands on terminal one by one.

$ sudo apt-get install yasm
$ sudo apt-get install nasm
$ sudo apt-get install curl
$ sudo apt-get install ant
$ sudo apt-get install rsync

$ sudo apt-get install autoconf
$ sudo apt-get install automake
$ sudo apt-get install aclocal
$ sudo apt-get install libtoolize
$ sudo apt-get install pkgconfig

If your system is 64 bit than excute following command as well:-

$ sudo dpkg --add-architecture i386
$ sudo apt-get install aptitude
$ sudo aptitude update
$ sudo aptitude install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386

11. Download git repository of Linphone android.


Run the following command to install git and Linphone android project from github site.

$ sudo apt-get install git
$ sudo git clone git://git.linphone.org/linphone-android.git –recursive

12. Run Makefile Script.


Open terminal and go to linphone android directory.

$ cd linphone-android

now run the Makefile script in the top level directory. This will download iLBC source files and convert some assembly files in VP8 project.

$ make

13. Import Linphone Android Project to Eclipse.


Open Eclipse and selcet File -> Import... -> Android -> Existing Android code into Workspace -> Browse... and than select linphone-android folder(Only select linphone-android and don't tick on “copy projects into workspace” ) than OK.


Now everything is set. Start working to customize Linphone android project. For programming part, check this: Android Linphone source code tutorial - Part 2

Related Programs:-

★ In Android app Screen-shots and ListView tricks

★ Extract APK File into Source Code (Java code and XML code)

★ Add Google AdMob Ads in Android App & Earn Money

★ Add Facebook SDK in Android Application

★ Advance Android Google Map 2 Tutorial with Examples - Part 1


This post first appeared on Coders Hub: Android Code Examples And Programming Tutorials, please read the originial post: here

Share the post

Start working on Linphone Android - Part 1

×

Subscribe to Coders Hub: Android Code Examples And Programming Tutorials

Get updates delivered right to your inbox!

Thank you for your subscription

×