I am trying to create a simple Android app that can recognize faces from a bitmap. First, I am trying to initialize VisionBase
with the following lines of code:
VisionBase.init(c, object : ConnectionCallback {
override fun onServiceConnect() {
l.engineReady()
Log.i("LOG_TAG", "onServiceConnect")
}
override fun onServiceDisconnect() {
l.engineDisconnected()
Log.i("LOG_TAG", "onServiceDisconnect")
}
})
Unfortunately, onServiceConnect
and onServiceDisconect
were never called. In my LogCat
I can a multiple errors with the same error message:
Access denied finding property "hwservicemanager.ready"
I have to mention that I have three devices. On my Huawei p40 Lite everything works fine, but on my Huawei Y6 2018 (model ATU-L21, EMUI version 8.0.0) and Huawei Y5p (EMUI version 10.1.0.151)I can reproduce this behavior every time.