Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.64 KB

README.md

File metadata and controls

41 lines (31 loc) · 1.64 KB

Bintray

Table of Contents generated with DocToc

maoni-email aims at opening up an Android email Intent, so users can send their feedback (along with the app screen capture and logs, if applicable) via email.

Getting started

Add this to your build.gradle:

  dependencies {
    implementation('org.rm3l:maoni:10.0.0@aar') {
        transitive = true
        //Needed because of https://github.com/rm3l/maoni/issues/294
        exclude module: 'unspecified'
    }
  }

And set it as the listener for your Maoni instance (at the right place within your application workflow):

    //Customize the maoni-email listener, with things like the 'to', 'bcc', 'cc', 'subject', ... fields of the email
    final org.rm3l.maoni.email.MaoniEmailListener listenerForMaoni = 
            new org.rm3l.maoni.email.MaoniEmailListener(...);
    
    new Maoni.Builder(MY_FILE_PROVIDER_AUTHORITY)
        .withListener(listenerForMaoni) //Callback from maoni-email
        //...
        .build()
        .start(MaoniSampleMainActivity.this); //The screenshot captured is relative to this calling context 

You're good to go! Maoni will take care of validating / collecting feedback and call maoni-email as needed.