title: Send the data of HashMap from android to node.js using retrofit
body: <p>I know I am doing something wrong but what exactly is the problem I don't know can someone please guide me through this</p>
  <p>I'm sending data from android studio using Hashmap to my node code but unfortunately I am not getting that data in node server</p>
  <p>My code in android studio :</p>
  <pre><code>public class MainActivity extends AppCompatActivity {
  private RetrofitInterface retrofitInterface;
  private Retrofit retrofit;
  private String BaseURl = &quot;http://10.0.2.2:3000&quot;;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      retrofit = new Retrofit.Builder().baseUrl(BaseURl).addConverterFactory(GsonConverterFactory.create()).build();
      retrofitInterface = retrofit.create(RetrofitInterface.class);
      HashMap&lt;String, String&gt; map = new HashMap&lt;&gt;();
      map.put(&quot;name&quot;, &quot;meet Davda&quot;);
      retrofitInterface.executemessage(map);
      Intent i = new Intent(this, LoginAdmin.class);
      startActivity(i);
      finish();
  }
  </code></pre>
  <p>and my nodeJs code :</p>
  <pre><code>const express = require('express')
  const app = express()
  app.use(express.json())
  app.post('/message', (req, res) =&gt; {
  var myname = req.body.name
  console.log(&quot;the name is: &quot; + myname)
  })
  app.listen(3000, () =&gt; {
  console.log(&quot;listening on port 3000&quot;)
  })
  </code></pre>
  <p>And my retrofit interface :</p>
  <pre><code>public interface RetrofitInterface {
  @POST(&quot;/message&quot;)
  Call&lt;Void&gt;executemessage(@Body HashMap&lt;String,String&gt;map);
  }
  </code></pre>