Skip to content
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

setCustomReportContent doesn't seem to be honored #59

Closed
antoche opened this issue Mar 7, 2013 · 1 comment
Closed

setCustomReportContent doesn't seem to be honored #59

antoche opened this issue Mar 7, 2013 · 1 comment
Assignees
Labels
Milestone

Comments

@antoche
Copy link

antoche commented Mar 7, 2013

If I try to set the custom report content programmatically as follows, ACRA only sends the default report content. If I set the same fields via customReportContent on the annotation, I do get the custom content like application log.

                ACRAConfiguration config = ACRA.getConfig();
                ReportField fields[] = { 
                        ReportField.ANDROID_VERSION,
                        ReportField.APP_VERSION_CODE,
                        ReportField.APP_VERSION_NAME,
                        ReportField.APPLICATION_LOG,
                        ReportField.AVAILABLE_MEM_SIZE,
                        ReportField.BRAND,
                        ReportField.BUILD,
                        ReportField.CRASH_CONFIGURATION,
                        ReportField.CUSTOM_DATA,
                        ReportField.DEVICE_FEATURES,
                        ReportField.DEVICE_ID,
                        ReportField.DISPLAY,
                        ReportField.DUMPSYS_MEMINFO,
                        ReportField.ENVIRONMENT,
                        ReportField.EVENTSLOG,
                        ReportField.FILE_PATH,
                        ReportField.INITIAL_CONFIGURATION,
                        ReportField.INSTALLATION_ID,
                        ReportField.IS_SILENT,
                        ReportField.LOGCAT,
                        ReportField.PACKAGE_NAME,
                        ReportField.PHONE_MODEL,
                        ReportField.PRODUCT,
                        ReportField.RADIOLOG,
                        ReportField.REPORT_ID,
                        ReportField.SETTINGS_SECURE,
                        ReportField.SETTINGS_SYSTEM,
                        ReportField.SHARED_PREFERENCES,
                        ReportField.STACK_TRACE,
                        ReportField.THREAD_DETAILS,
                        ReportField.TOTAL_MEM_SIZE,
                        ReportField.USER_APP_START_DATE,
                        ReportField.USER_COMMENT,
                        ReportField.USER_CRASH_DATE,
                        ReportField.USER_EMAIL };
                config.setCustomReportContent( fields );
@ghost ghost assigned KevinGaudin Apr 20, 2013
@KevinGaudin
Copy link
Member

The report fields list was built during ACRA.init() and was not updated afterwards. I'm now moving this code at the moment the report is built.

KevinGaudin added a commit that referenced this issue Apr 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants