cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Hybrid app- anyline OCR scanner plugin - app getting autoclosed

alagar_pandian
Participant
0 Kudos

Hi all,

I am following this blog https://blogs.sap.com/2017/09/02/integrating-the-native-anyline-mrz-scanner-into-a-sap-fiori-app/ to implement OCR scanner capability for my hybrid app.

But my mobile application is getting auto closed when the below api of anyline plugin is executed in the controller code.

scan: function() { cordova.exec( this.onResult, this.onError, "AnylineSDK", "MRZ", this.config); }

I have no idea why this occurs.

Please throw some light here.

Also is it mandatory to install android studio to work on hybrid project? rightnow I have used mobile cloud build option for hyprid app and deployed as packaged app in my android mobile.

Accepted Solutions (1)

Accepted Solutions (1)

WouterLemaire
Active Contributor
0 Kudos

Try using logcat while your phone is connected to your computer to know why your app crashes: https://developer.android.com/studio/command-line/logcat

alagar_pandian
Participant
0 Kudos

Hi,

Thanks for your response.

I haven't installed android studio yet, is that required to check logs. I really don't understand the need of android studio and java stuff for sap ui5 hybrid app.

WouterLemaire
Active Contributor
0 Kudos

You don’t need the android studio for checking the logs. You do need to install the adb driver for makin connection to your device. You could try this one: https://adb.clockworkmod.com/

You have also specific adb drivers for specific devices. Search on google for adb drivers with the name of your device and you will find the one you need.


cordova still generates a native app, all native apps on android are build with java. Cordova will run java code behind the scene to make your hybrid app work. This is why you need the android studio to build your app. Luckily, SAP provides this build process of android studio in the cloud and you do not have to install anything for building your apps.

Answers (0)