-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability for Teacher App to send a stacktrace on fatal exception via email #25
Comments
We had a crash this weekend when demoing something. Would be nice to at least where possible catch JSON exceptions or any other fatal case and send an email... or if on restart, we have detected a crash, we can send out a report. |
Ok, so if I understand:
Is that correct? |
testing reply to email |
So I have an idea. Why don't we have the app send this information that you've mentioned into an email?
I tested this out from my email client. All messages sent here will end up assigned to this issue #25 so we have a ready made place to capture crashes. |
The pull request is ready. |
Dear Administrator, I want to know if jp characters send in utf8 A SMILE teacher ----- JSON data ----- [ |
Message: Expected literal value at character 2 of {[} |
You have to add 3 jars to the project: Here is the link: http://code.google.com/p/javamail-android/downloads/list |
Ok, so now the code can forward the json exception by email in background. So, for now, the receiver will be "[email protected]" instead of the Github email |
|
. org.json.JSONException
|
I think this issue is fixed |
Charles, we seem to be missing the jar files for mail and activation. |
I'll try adding the jars. If this isn't working, I'll have to work off an earlier tag. |
Appears to be building now. Needs testing. |
David, did you finally resolve the problem with jars ? |
Yes, fixed. |
. org.json.JSONException
|
@chrqls please double check this issue when looking at your eclipse issue. |
Dear Administrator, blablabla A SMILE teacher ----- JSON data ----- [ |
Since we've commented out this functionality, I am reopening. Please @chrqls figure out why it's not working in eclipse first. Then figure out if this will crash itself for any reason if the email servers cannot be reached. If it's ok, then uncomment. |
This is entirely useful functionality. What we may wish to do is that when we can't send email, to log the error to the server. I should add a fatal error log to Persisteus. |
Dear Administrator, HTC NHS A SMILE teacher ----- JSON data ----- [ |
Dear Administrator, report A SMILE teacher ----- JSON data ----- [ |
Dear Administrator, 4r6 dynamics A SMILE teacher ----- JSON data ----- [ Sent from my ASUS Pad |
Dear Administrator, vvv A SMILE teacher ----- JSON data ----- [ Sent from my ASUS Pad |
It should be possible to for the teacher to send an email to someone (me ) to report problems in the app and pull data from the server.
The text was updated successfully, but these errors were encountered: