title: adding slack notification for android
body: <p>I am new to android. I am trying to integrate slack notification in my android app.</p>
  
  <p><strong>What I mean:</strong> I want any exceptions &amp; errors in my android project to be raised in my slack channel.</p>
  
  <p>W<strong>hat I tried:</strong> To call the slack integration API for the same, I am using GsonRequest(Reason is that I'm using GsonRequest for all the API calls, I want things to be uniform across the project).</p>
  
  <p>This is the code which I have written so far:</p>
  
  <pre><code>public class slacknotification {
      public void notifySlack(Context context) {
          String Url = "https://hooks.slack.com/services/TXXXXXX/BXXXXXX/XXXXXXXXXXXXXXXX";
          final Map&lt;String, String&gt; headers = CommonLibs.getBasicHeaders(context);
          final GsonRequest&lt;T&gt; request = new GsonRequest&lt;&gt;(Request.Method.POST, Url, class,headers,
                  new Response.Listener&lt;T&gt;() {
                      @Override
                      public void onResponse(X) {
                           #code
                          }
                  },
                 new Response.ErrorListener() {
                           #code
                 }
  
      });
  }
  </code></pre>
  
  <p>I am not aware of the values of T and X in my code. The response for </p>
  
  <pre><code>requests.request(
          method='POST',
          url=,'https://hooks.slack.com/services/TXXXXXX/BXXXXXX/XXXXXXXXXXXXXXXX'
          data='{"text": "' + "msg" + '"}',
          headers={'Content-type': 'application/json'},
      )
  </code></pre>
  
  <p>in python is 200[OK]. Can someone please help me here.</p>