title: Cannot show the result from Php file in Android
body: <p>I have a problem about getting value from php file and showing it as a Toast message.</p>
  
  <p>I get result value as "null".</p>
  
  <p>How can I fix it?</p>
  
  <p>Here is my php code.</p>
  
  <pre><code>...
  $x = (array('Result' =&gt; "Successful"));
  echo json_encode($x,JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT);
  ...
  </code></pre>
  
  <p>android code</p>
  
  <pre><code>x.enqueue(new Callback&lt;Result&gt;() {
              @Override
              public void onResponse(Call&lt;Result&gt; call, Response&lt;Result&gt; response) {
                  if(response.isSuccessful()){
                      Result result = response.body();
                      String message = result.getResult();
                      Log.i(LOG,"gonder() | onResponse : " + message);
                      Toast.makeText(getApplicationContext(),
                              message, Toast.LENGTH_SHORT).show();
                  }
  
              }
  
              @Override
              public void onFailure(Call&lt;Result&gt; call, Throwable t) {
  
              }
          });
  </code></pre>