J jfitchett56 Member Licensed User Longtime User May 3, 2013 #1 This program runs perfectly when I have it connected to debugger. It is intended to load smsintercept and look for a msg that contains "recordaudio x" x being how long. It then uses audiorecorder lib to record in the background and B4Aserver to send the audio file to me. It is meant to load when rebooted so I set the smsint service to load on boot. I see it is running after a reboot but it does not respond to msgs. I am not clear on which service modules to load at boot so I probably have something configured wrong. Is there a way to log on the phone like the debug interface does so I can get a handle on whats happening if it is not obvious to someone on the board. Thank you... Attachments smsrecord.zip smsrecord.zip 10.5 KB · Views: 341
This program runs perfectly when I have it connected to debugger. It is intended to load smsintercept and look for a msg that contains "recordaudio x" x being how long. It then uses audiorecorder lib to record in the background and B4Aserver to send the audio file to me. It is meant to load when rebooted so I set the smsint service to load on boot. I see it is running after a reboot but it does not respond to msgs. I am not clear on which service modules to load at boot so I probably have something configured wrong. Is there a way to log on the phone like the debug interface does so I can get a handle on whats happening if it is not obvious to someone on the board. Thank you...
J jfitchett56 Member Licensed User Longtime User May 3, 2013 #2 additional info Additionally, if I reboot, on first msg received it says smsint closed. But if after that I run it manually it stays loaded and handles all msgs as intended. Perhaps I need to load the B4Server at boot also? Upvote 0
additional info Additionally, if I reboot, on first msg received it says smsint closed. But if after that I run it manually it stays loaded and handles all msgs as intended. Perhaps I need to load the B4Server at boot also?
Erel B4X founder Staff member Licensed User Longtime User May 5, 2013 #3 Try to call Service.StartForeground (or at least make your service a sticky service). Creating a sticky service - long running background tasks You can check the logs even when the debugger is not connected. Upvote 0
Try to call Service.StartForeground (or at least make your service a sticky service). Creating a sticky service - long running background tasks You can check the logs even when the debugger is not connected.
J jfitchett56 Member Licensed User Longtime User May 7, 2013 #4 check logs How do you check logs when debugger is not connected? I tried downloading a logcat program but what it shows in no way resembles the log in the debugger. I just need to see the error where it is crashing. Since i have it start on boot it has not loaded the b4abridge to connect to. Upvote 0
check logs How do you check logs when debugger is not connected? I tried downloading a logcat program but what it shows in no way resembles the log in the debugger. I just need to see the error where it is crashing. Since i have it start on boot it has not loaded the b4abridge to connect to.
Erel B4X founder Staff member Licensed User Longtime User May 8, 2013 #5 You should connect the IDE to the device. You do not need to run any application. Reboot your device and then connect to it. The logs are saved internally. Upvote 0
You should connect the IDE to the device. You do not need to run any application. Reboot your device and then connect to it. The logs are saved internally.