-
Notifications
You must be signed in to change notification settings - Fork 1
Saral App Debugging
Install https://developer.android.com/studio/command-line/adb
use the below log command to get android logs.
adb logcat
-
Set debug option to true to store the image in android mobile. Modify below java file under /saralsdk and change below highlighted flags to true.
SaralSDKOpenCVScannerActivity.java
mTableCornerDetection = new TableCornerCirclesDetection(true); mDetectShaded = new DetectShaded(true);
-
With the above changes, run the scan on the mobile.
-
Use the below command to grab the android level logs and search for 'SrlSDK::CVOps: Saving file:' and 'SrlSDK::DetectShaded: Saving file:'. This will give you path to where the saved images are stored in your android phone.
adb logcat
-
Use the below command to pull the images finally.
adb pull <image path in android phone found in above logs>
example:adb pull /storage/emulated/0/Android/data/com.saralapp/files/Download/table_4Fg.jpg
In Android studio,open Logcat view at the bottom while running android application. Use "SrlSdk" as a filter in Logcat view to monitoring Saral SDK logs. This is easy way to monitor whats happening with in SaralSDK code.
adb shell cd <Path>
Example:
storage/emulated/0/Android/data/com.saralapp/files/Download
- Install react-native-cli using below command.
npm install --global react-native-cli
- Run the below command from the frontend folder
react-native run-android
- Run below command to trace logs.
react-native log-android
https://stackoverflow.com/questions/53612283/how-can-i-get-app-crash-log-from-google-play-console