title: setVisibility(View.INVISIBLE) not working in onResume() method
body: <p>Started an Activity B from  Activity A without finishing A.  if the Activity B is finished,i have written a method inside <code>onResume()</code> of Activity A to make an <code>ImageView</code> invisible. But this is not working. Code is given below.</p>
  
  <pre><code>public void onResume()
  {
      if(preferenceUtil.getMUSIC_ONOFF()==0) {
          try {
              player.start();
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
      giftbutton.setEnabled(true);
      giftbutton.setClickable(true);
  
      checkUnlockedStory();
      super.onResume();
  }
  
    public void checkUnlockedStory()
          {
               if(preferenceUtil.getOVERALL_STARS()&gt;=24)
              {                 
                      giftbutton.setImageResource(R.drawable.gift);
                      giftbutton_count.setVisibility(View.INVISIBLE);                  
  
              }
     }
  </code></pre>