title: How to building and running apjsua sample application
body: <p>I wanted to try PJSIP on an Android AVD.
  I performed the following steps :</p>
  
  <p>Now, the next step says : 
  Building and running apjsua sample application</p>
  
  <p>We have apjsua sample application located under <code>pjsip-apps/src/apjsua</code>. It is not built by default, and you need <code>SWIG</code> to build it.</p>
  
  <p>Follow these steps to build apjsua:</p>
  
  <blockquote>
    <p>Make sure SWIG is in the build environment PATH. Alternatively, update
    SWIG path in $PJDIR/pjsip-apps/src/apjsua/jni/Android.mk file. Run
    ndk-build from directory $PJDIR/pjsip-apps/src/apjsua, note that the
    Android NDK root should be in the PATH, e.g:</p>
    
    <p>Create Android project from apjsua. In Eclipse: From menu: File -->
    New --> Project Select Android Project from Existing Code, press Next
    In Root Directory, put the location of apjsua source code (i.e.
    $PJDIR/pjsip-apps/src/apjsua) and press Finish You may need to select
    different Android SDK than what is configured in apjsua. You can do
    this from the project's Properties. You can modify
    apjsua/res/raw/config.txt for apjsua's config file. Run it.</p>
  </blockquote>
  
  <p>My question is :
  How to use swig? I am very confused.</p>