Last updated
Last updated
In Android studio,open Logcat view at the bottom while running android application. Use "SrlSdk" as a filter in Logcat view to monitor Saral SDK logs. This is easy way to monitor whats happening within code.
Install react-native-cli
using the below command.
npm install --global react-native-cli
2. Run the below command from the frontend folder
react-native run-android
3. Run the below command to trace logs.
react-native log-android
Install
use the below log command to monitor android logs.
adb log-cat
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
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
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
Saral App Debug Tips