| | |
| | | apply plugin: 'com.kezong.fat-aar' |
| | | |
| | | android { |
| | | compileSdkVersion 31 |
| | | buildToolsVersion "28.0.0" |
| | | compileSdkVersion 33 |
| | | //buildToolsVersion "28.0.0" |
| | | |
| | | defaultConfig { |
| | | minSdkVersion 23 |
| | | targetSdkVersion 31 |
| | | versionCode 5 |
| | | versionName "1.0.7" |
| | | targetSdkVersion 34 |
| | | versionCode 6 |
| | | versionName "1.0.8" |
| | | |
| | | ndk { |
| | | abiFilters 'arm64-v8a' |
| | |
| | | callFilter = new IntentFilter(); |
| | | callFilter.addAction("com.hdl.homepro.call.action"); |
| | | callBroadcastReceiver = new CallBroadcastReceiver(); |
| | | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { |
| | | registerReceiver(callBroadcastReceiver, callFilter, RECEIVER_EXPORTED); |
| | | } else { |
| | | registerReceiver(callBroadcastReceiver, callFilter); |
| | | } |
| | | |
| | | if (callBroadcastReceiver != null) { |
| | | String finalInterphoneType = interphoneType; |
| | |
| | | import android.content.IntentFilter; |
| | | import android.content.pm.PackageManager; |
| | | import android.graphics.Bitmap; |
| | | import android.os.Build; |
| | | import android.os.Bundle; |
| | | import android.os.CountDownTimer; |
| | | import android.support.annotation.NonNull; |
| | |
| | | callFilter = new IntentFilter(); |
| | | callFilter.addAction("com.hdl.homepro.call.action"); |
| | | callBroadcastReceiver = new CallBroadcastReceiver(); |
| | | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { |
| | | registerReceiver(callBroadcastReceiver, callFilter, RECEIVER_EXPORTED); |
| | | } else { |
| | | registerReceiver(callBroadcastReceiver, callFilter); |
| | | } |
| | | |
| | | if (callBroadcastReceiver != null) { |
| | | String finalInterphoneType = interphoneType; |
| | |
| | | Core core = HDLLinphoneKit.getInstance().getCore(); |
| | | if (core != null) { |
| | | core.removeListener(mCoreListener); |
| | | Log.d("panlili", "HDLLinphoneMonitorActivity.java:onDestroyLinphone----->removeListener "); |
| | | core.setNativeVideoWindowId(null); |
| | | core.setNativePreviewWindowId(null); |
| | | } |
| | |
| | | callFilter = new IntentFilter(); |
| | | callFilter.addAction("com.hdl.homepro.call.action"); |
| | | callBroadcastReceiver = new CallBroadcastReceiver(); |
| | | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { |
| | | registerReceiver(callBroadcastReceiver, callFilter, RECEIVER_EXPORTED); |
| | | } else { |
| | | registerReceiver(callBroadcastReceiver, callFilter); |
| | | } |
| | | |
| | | if (callBroadcastReceiver != null) { |
| | | String finalInterphoneType = interphoneType; |
| | |
| | | } |
| | | |
| | | android { |
| | | compileSdkVersion 28 |
| | | compileSdkVersion 33 |
| | | |
| | | defaultConfig { |
| | | applicationId "com.example.hdllinphonesdkdemo" |
| | | minSdkVersion 23 |
| | | targetSdkVersion 28 |
| | | targetSdkVersion 34 |
| | | versionCode 1 |
| | | versionName "1.0" |
| | | |
| | |
| | | |
| | | mTextView.setOnClickListener(v -> HDLLinphoneKit.getInstance() |
| | | .setAccountAndLogin( |
| | | "677890543690887170", |
| | | "xFNxyrTIM8gLAOGDw3OiuzV5F", |
| | | "1855881532683550721", |
| | | "wp5Z3MlACFgnMKcdaIW89mrgb", |
| | | "47.96.88.250:25060", |
| | | HDLLinphoneKit.INTER_PHONE_TYPE_HDL |
| | | )); |
| | | // {"code":0,"data":{"proxy":"sip:47.96.88.250:25060","realm":"47.96.88.250:25060","sipAccount":"1855881532683550721","sipPasswd":"wp5Z3MlACFgnMKcdaIW89mrgb"},"requestId":"48a980dcb27cf3e5d00e084865afec7d","timestamp":"1731920523514","isSuccess":true} |
| | | |
| | | mTextView4.setOnClickListener(v -> HDLLinphoneKit.getInstance().setAccountAndLogin("A183372453821457", "592436", "139.159.157.75:47000", HDLLinphoneKit.INTER_PHONE_TYPE_FREEVIEW)); |
| | | |
| | | mMonitorText.setOnClickListener(v -> { |
| | | // String sip_account = "sip:D" + space_code + "@yun"; |
| | | HDLLinphoneKit.getInstance().callTo("sip:D26-11-1@139.159.157.75:46000", true); |
| | | HDLLinphoneKit.getInstance().callTo("sip:101003@47.96.88.250:25060", true); |
| | | // HDLLinphoneKit.getInstance().callTo("D22-1-21-1", true); |
| | | startActivity(HDLLinphoneMonitorActivity.class); |
| | | }); |