Changeset 4574


Ignore:
Timestamp:
Jul 26, 2013 5:54:33 AM (11 years ago)
Author:
ming
Message:

JNI projects:

  • Fix project setup for Android sample app
Location:
pjproject/branches/projects/jni/pjsip-apps/src/jni
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/jni/pjsip-apps/src/jni/AndroidManifest.xml

    r4571 r4574  
    99        android:targetSdkVersion="17" /> 
    1010 
     11    <uses-permission android:name="android.permission.INTERNET" /> 
     12    <uses-permission android:name="android.permission.RECORD_AUDIO" /> 
     13    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> 
     14    <uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" /> 
     15    <uses-permission android:name="android.permission.WRITE_SETTINGS" /> 
     16    <uses-permission android:name="android.permission.READ_PHONE_STATE" /> 
     17    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> 
     18    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 
     19    <uses-permission android:name="android.permission.WAKE_LOCK" /> 
     20    <uses-permission android:name="android.permission.VIBRATE" /> 
     21    <uses-permission android:name="android.permission.READ_LOGS" /> 
     22    <uses-permission android:name="android.permission.USE_SIP" /> 
     23    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
     24    <uses-permission android:name="android.permission.CAMERA" /> 
     25 
     26    <uses-feature 
     27        android:name="android.hardware.microphone" 
     28        android:required="true" /> 
     29    
    1130    <application 
    1231        android:allowBackup="true" 
  • pjproject/branches/projects/jni/pjsip-apps/src/jni/jni/Android.mk

    r4571 r4574  
    5353 
    5454# Android build settings 
    55 LOCAL_PATH      := $(call my-dir)/pjsip-apps/src/jni 
     55LOCAL_PATH      := $(PJDIR)/pjsip-apps/src/jni 
     56include $(CLEAR_VARS) 
    5657LOCAL_MODULE    := libpjsua 
    5758LOCAL_MODULE_FILENAME := libpjsua 
     
    6061LOCAL_LDLIBS    := $(APP_LDLIBS) 
    6162LOCAL_SRC_FILES := $(MY_SWIG_WRAPPER).cpp $(MY_OUT_DIR)/callbacks.cpp 
    62  
    63 MY_JNI_WRAP     := $(LOCAL_PATH)/$(MY_SWIG_WRAPPER).cpp 
    6463 
    6564jni: $(MY_JNI_LIB) java 
     
    9998        $(MY_JAVA) -cp $(MY_PACKAGE_BIN) -Djava.library.path="$(MY_PACKAGE_BIN)" hello 
    10099 
    101 $(MY_JNI_WRAP): $(MY_SWIG_WRAPPER).cpp 
     100$(LOCAL_PATH)/$(MY_SWIG_WRAPPER).cpp: $(MY_SWIG_WRAPPER).cpp 
    102101 
    103 .PHONY: $(MY_JNI_WRAP) 
     102$(LOCAL_PATH)/$(MY_OUT_DIR)/callbacks.cpp: $(MY_OUT_DIR)/callbacks.cpp 
    104103 
    105104include $(BUILD_SHARED_LIBRARY) 
  • pjproject/branches/projects/jni/pjsip-apps/src/jni/jni/swig_gen.py

    r4570 r4574  
    2222else: 
    2323    PYCPARSER_DIR="/Library/Python/2.7/site-packages/pycparser" 
    24     CPP_PATH='/Users/ming/teluu/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/arm-linux-androideabi-cpp' 
     24    CPP_PATH='/Users/ming/teluu/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-cpp' 
    2525 
    2626# CPP (C preprocessor) settings 
  • pjproject/branches/projects/jni/pjsip-apps/src/jni/src/org/pjsip/hello/MainActivity.java

    r4571 r4574  
    1111                super.onCreate(savedInstanceState); 
    1212                setContentView(R.layout.activity_main); 
     13                 
     14                /* Call test app here 
     15                String [] args = {"sip:192.168.1.49"}; 
     16                hello.main(args); 
     17                */ 
    1318        } 
    1419 
  • pjproject/branches/projects/jni/pjsip-apps/src/jni/src/org/pjsip/hello/hello.java

    r4570 r4574  
    11/* $Id: hello.java 4566 2013-07-17 20:20:50Z nanang $ */ 
     2 
     3package org.pjsip.hello; 
    24 
    35import java.io.BufferedReader; 
Note: See TracChangeset for help on using the changeset viewer.