title: how can refresh the fragment when I finish the Activity?
body: <p>how can refresh the fragment when I finish the Activity?</p>
  <p>When I from MapFragment to open PostActivity, then I am writing finish and submit the post and use finish(); function to close PostActivity, how can refresh the Mapfragment?</p>
  <p>in my MapFragment code</p>
  <pre><code>fab.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
                  Intent intent = new Intent(getContext(), Post.class);
                  startActivity(intent);
              }
          });
  </code></pre>
  <p>and this is my Post code</p>
  <pre><code>private void uploadImage(){
          String userID = getID;
          String image = convertToString();
          String image2 = convertToString2();
          String title = maptitle.getText().toString();
          String info = mapInfo.getText().toString();
          String lat = currentlat.getText().toString();
          String lng = currentlng.getText().toString();
          String address = currentAddress.getText().toString();
  
          ApiInterface apiInterface = ApiClient.getApiClient().create(ApiInterface.class);
          Call&lt;MapSendPost&gt; call = apiInterface.mapSendPost(image,userID,image2,title,info,lat,lng,address);
  
          progressDialog.show();
  
          call.enqueue(new Callback&lt;MapSendPost&gt;() {
              @Override
              public void onResponse(Call&lt;MapSendPost&gt; call, Response&lt;MapSendPost&gt; response) {
                  progressDialog.dismiss();
                  MapSendPost img_pojo = response.body();
                  Toast.makeText(MapPost.this, &quot;Successful&quot;, Toast.LENGTH_SHORT).show();
                  finish();
  
              }
  
              @Override
              public void onFailure(Call&lt;MapSendPost&gt; call, Throwable t) {
                  Log.d(&quot;Server Response&quot;,&quot;&quot;+t.toString());
                  progressDialog.dismiss();
  
              }
          });
  
      }
  </code></pre>
  <p>or when I finish the Activity, how can call on the fragment loadMap(); ?</p>
  <p>and in my MapFragment, I have add this code</p>
  <pre><code>    @Override
      public void onPause() {
          super.onPause();
          initMap();
      }
  
      @Override
      public void onResume() {
          super.onResume();
          loadMaps();
      }
  </code></pre>
  <p>but, it's still not working...</p>