[jitsi-dev] Failed to import "react-native-call-detection" on Android


#1

Hi team,

I want to exit the current conference on Android phone every time someone
calls. I've tried to import this package:
https://github.com/priteshrnandgaonkar/react-native-call-detection but it
doesn't work. The log is:

*android\sdk\src\main\java\org\jitsi\meet\sdk\JitsiMeetView.java:110:
error: constructor CallDetectionManager in class CallDetectionManager
cannot be applied to given types;*
* .addPackage(new
com.pritesh.calldetection.CallDetectionManager())*
* ^*
* required: Application*
* found: no arguments*
* reason: actual and formal argument lists differ in length*
*Note: android\sdk\src\main\java\org\jitsi\meet\sdk\AudioModeModule.java
uses or overrides a deprecated API.*
*Note: Recompile with -Xlint:deprecation for details.*

I've tried some methods but still cannot make it works. Do you guys have
any experience with this package or can you suggest me another package to
handle the call event.

Thank you so much


#2

Hi,

Hi team,

I want to exit the current conference on Android phone every time someone calls. I've tried to import this package: https://github.com/priteshrnandgaonkar/react-native-call-detection but it doesn't work. The log is:

android\sdk\src\main\java\org\jitsi\meet\sdk\JitsiMeetView.java:110: error: constructor CallDetectionManager in class CallDetectionManager cannot be applied to given types;
               .addPackage(new com.pritesh.calldetection.CallDetectionManager())
                            ^
  required: Application
  found: no arguments
  reason: actual and formal argument lists differ in length
Note: android\sdk\src\main\java\org\jitsi\meet\sdk\AudioModeModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

I've tried some methods but still cannot make it works. Do you guys have any experience with this package or can you suggest me another package to handle the call event.

I have no experience with the package. Its README states that you need to instantiate if with the instance of Application.

Cheers,

···

On May 25, 2018, at 11:59, Nam Hoài Trần <namth4@topica.edu.vn> wrote:

Thank you so much
_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
Saúl