问题标签 [sipdroid]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1926 浏览

android - SIPdroid Android Studio ndk integration error

I'm currently using Android Studio 2.0 preview 4. I have followed the guide from tools.android.com and tested NDK samples from github. The samples worked without a hitch, but when I implemented it on the SIPdroid project, it throws this error when I rebuild the project:

Error:(78, 1) A problem occurred configuring project ':app'. Exception thrown while executing model rule: model.android Cannot set readonly property: minSdkVersion for class: com.android.build.gradle.managed.ProductFlavor_Impl

when I try to use gradle project sync it gives this error:

Error:Unable to load class 'com.android.build.gradle.managed.ProductFlavor_Impl'. Possible causes for this unexpected error include:

  • You are using JDK version 'java version "1.7.0_79"'. Some versions of JDK 1.7 (e.g. 1.7.0_10) may cause class loading errors in Gradle. Please update to a newer version (e.g. 1.7.0_67). Open JDK Settings
  • Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network)
  • The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. Stop Gradle build processes (requires restart)
  • Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

Android project structure now looks like this. previously the jni folder is separated from the java folder. enter image description here

Here's my config:

SIPdroid/app/build.gradle

SIPdroid/build.gradle

SIPdroid/gradle-wrapper.properties

SIPdroid/local.properties

0 投票
1 回答
1633 浏览

android - 在棉花糖的锁屏顶部显示 VOIP 来电

我正在开发 VOIP 通话应用程序。当来电出现在 android 5.0 版时,来电显示在锁屏顶部,但从 6.0 版开始,它显示为通知。通话画面未出现。

在做了一些研发之后,在 setContentVies() 之前添加了以下代码,

但仍然面临同样的问题。谁能建议我如何在锁定屏幕上显示 VOIP 来电。

0 投票
0 回答
26 浏览

android - 如何在 SipDroid 中加密和解密数据包

我目前在做Sipdroid的加解密,现在我已经成功进行了加密操作,经过测试可以达到加密效果。但是我在几个地方都尝试了解密,要么通讯双方没有声音,要么通讯双方有嘈杂的噪音。 我想就如何解密这个东西寻求帮助。 首先,我为 RC4 加密编写了一个名为 RC4encrypt.class 的类:

}

然后我给 RtpSocket.class 写了一个函数 send_Encrypt:

之后我对 RtpSocket.class 中的 send 函数做了一些修改:

我用修改后的程序和原程序通话,一侧声音是噪音,另一侧可以听到正常通话,说明加密成功,但是我用同样的方法修改receive功能时就可以了无法实现。那么有人可以指导我吗?

0 投票
2 回答
26 浏览

android - 巨大的下巴出现在应用程序窗口的顶部

我正在编辑Sipdroid并对 UI 进行更改,但此应用程序中的每个活动都有一个巨大的下巴,我似乎无法以任何方式隐藏。看起来它被识别为状态栏,正如您从我在下面共享的代码中看到的那样,而且每当我更改状态栏颜色时,下巴也会变成该颜色。到目前为止,我发现它不在屏幕顶部创建填充的唯一方法是添加<item name="android:windowTranslucentStatus">true</item>到样式 XML。
以下是布局 XML 文件和 Kotlin 类的代码:

这些是显示和不显示布局边界的屏幕截图。