Hi, hello everyone.
I am using B4A,I can connect to the phone to debugger program, but I don t know where to read the error log.
The computer shows that the log record is connected to the phone, then no other content is displayed.
Ask for help.Thanks
So I made a few times of experiment. This applies to HONOR and Huawei phones.
Here are my steps:
As explained in this post, using dialer enter *#*#2846579#*#* to enter the ProjectMenu.
Tap on "1. Background Settings"
Tap "3. AP LOG Settings"
Choose "Open" and close. (Do not restart your phone!)
If you have rebooted your phone, you need to repeat these steps!
Go to phone "Settings"
Go to "System & updates"
Go to "Developer options" (if this is not enabled, you need to go to "About phone" and tap on "Build number" a few times until "Developer mode" is enabled)
Under DEBUGGING group, enable "USB debugging". A dialog will pop up ask you to "Allow USB debugging?", tap on OK...
Yes - I sometimes get this if I have a coding error. If I immediately rerun (ie recompile and run the app unchanged) then I see the complete log including the previous failed run. I am running on a Pixel 4a. I don't know what the reason is.
You have, of course, set the "#BridgeLogger: True" attribute? - just checking.
Thanks Erel, I tried this and now i have logs............. no rooting requiered ;-) Dial this: *#*#2846579#*#* Service menu will appear. Go to "ProjectMenu" -> "Background Setting" -> "Log Setting" Open "Log switch" and set it to ON. Open "Log level setting" and set the log level you wish...
www.b4x.com
It worked for me once but it backed to the same problem after a while.
Edit: I try now. It works. It's annoying. It backed to same issue after rebooting the phone.
So I made a few times of experiment. This applies to HONOR and Huawei phones.
Here are my steps:
As explained in this post, using dialer enter *#*#2846579#*#* to enter the ProjectMenu.
Tap on "1. Background Settings"
Tap "3. AP LOG Settings"
Choose "Open" and close. (Do not restart your phone!)
If you have rebooted your phone, you need to repeat these steps!
Go to phone "Settings"
Go to "System & updates"
Go to "Developer options" (if this is not enabled, you need to go to "About phone" and tap on "Build number" a few times until "Developer mode" is enabled)
Under DEBUGGING group, enable "USB debugging". A dialog will pop up ask you to "Allow USB debugging?", tap on OK.
Connect B4A with B4A-Bridge and compile your app as normal.
The "USB debugging" settings will turned off automatically when you don't "see" it. (Schrödinger’s cat? ?)
Whenever the logs are not showing again, repeat from step 6 to 10.