How do I show the Send Feedback in X dialog?

Background

Some Google apps allow you to send reviews from within the app, rather than going to the play store.

For example, this ( this app ):

enter image description here

compare this to the original: enter image description here

Question

Can this dialog be opened?

If so, how? And what really happens when a user submits feedback? Is it sent directly to the developer console? Can a developer respond to such a review? Can the dialog ask the user to leave an email? What are the features of this dialogue?

If not, what do they use? This is similar to the crash info dialog. Maybe they use the same mechanism?

, , , , API 14, ...

+4
1

, . , . , . , , , API 14 . . - , , .

, , , .

.

@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
public ApplicationErrorReport createErrorReport (Exception e) {
    ApplicationErrorReport report = new ApplicationErrorReport ();
    report.packageName = report.processName = this.getPackageName ();
    report.time = System.currentTimeMillis ();
    report.type = null == e ? ApplicationErrorReport.TYPE_NONE : ApplicationErrorReport.TYPE_CRASH;
    report.systemApp = false;

    if (null != e) {
        ApplicationErrorReport.CrashInfo crash = new ApplicationErrorReport.CrashInfo ();
        crash.exceptionClassName = e.getClass ().getSimpleName ();
        crash.exceptionMessage = e.getMessage ();

        StringWriter writer = new StringWriter ();
        PrintWriter printer = new PrintWriter (writer);
        e.printStackTrace (printer);

        crash.stackTrace = writer.toString ();

        StackTraceElement stack = e.getStackTrace ()[0];
        crash.throwClassName = stack.getClassName ();
        crash.throwFileName = stack.getFileName ();
        crash.throwLineNumber = stack.getLineNumber ();
        crash.throwMethodName = stack.getMethodName ();

        report.crashInfo = crash;
    }
    return report;
}
+2

All Articles