Customize feedback form in android

Mahesh's Avatar

Mahesh

16 Feb, 2017 08:53 AM

Hi,

I am trying to have different view of feedback form like i dont want user to enter their email and name, i want to hide those views and send their name and email from my shared prefernce.

is it possible to do?

  1. Support Staff 1 Posted by Kevin Li on 16 Feb, 2017 10:05 AM

    Kevin Li's Avatar

    Hi Mahesh,

    Our SDK is open source:https://github.com/bitstadium/HockeySDK-Android.
    You can customize it by yourself.

    Best,
    Kevin

  2. Support Staff 2 Posted by Kevin Li on 17 Feb, 2017 03:15 AM

    Kevin Li's Avatar

    Hi Mahesh,

    Sorry for the previous unclear reply.
    You can do that by implementing the APIs of FeedbackManager.
    Here's a sample code:

    Button customFeeback = (Button) findViewById(R.id.feedback_custom_btn);
    customFeeback.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
        FeedbackManager.setUserEmail("[email blocked]");
        FeedbackManager.setUserName("Kevin");
        FeedbackManager.setRequireUserEmail(FeedbackUserDataElement.DONT_SHOW);
        FeedbackManager.setRequireUserName(FeedbackUserDataElement.DONT_SHOW);
        FeedbackManager.showFeedbackActivity(MainActivity.this);
      }
    });
    

    Hope this help you!

    Best,
    Kevin

  3. Kevin Li closed this discussion on 24 Feb, 2017 04:29 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac