title: Why toast message are not show in android 4.1 operating system containing mobile
body: <p>I cant see the toast message in android 4.1 mobile. Upto yesterday I was able to see the toast message. From today only I can not see the message. Please help me.</p>
  
  <pre><code>Toast.makeText(getApplicationContext(), "hi", Toast.LENGTH_SHORT).show(); 
  </code></pre>
  
  <p>I have tried custom toast message also instead of toast message. But still not working.</p>
  
  <p><strong>Custom toast:</strong> </p>
  
  <pre><code>LayoutInflater inflater=getLayoutInflater(); 
  View layout = inflater.inflate(R.layout.toast_layout,(ViewGroup) findViewById(R.id.toast_layout_root)); 
  TextView text = (TextView) layout.findViewById(R.id.text); 
  text.setText("Please fill Name"); 
  Toast toast = new Toast(getApplicationContext()); 
  toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);
  toast.setDuration(Toast.LENGTH_LONG); 
  toast.setView(layout); 
  toast.show();
  </code></pre>