I know that there are some other problems associated with this problem, however mine is unexpectedly different (at least I think so).
I assume my code is right, but I have no idea why the toast message is not displayed. Firstly, I could not see the toasts in my fragments. Then I decided to include it in my activities and, oddly enough, it does not appear here either.
This is a code of my activity that has been extended from FragmentActivity.
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
Log.d(TAG, "***************************");
Log.d(TAG, "*** Application started ***");
Log.d(TAG, "***************************");
setContentView(R.layout.activity_main);
mContext = MainActivity.this;
Toast.makeText(mContext, "Hello World", Toast.LENGTH_SHORT).show();
.
.
.
}
The application works fine without errors, and only this message f.toast is not displayed! I even replaced mContext with getApplicationContext (), and I had the same result, the toast is not displayed.
Any suggestion will be appreciated. Thanks
================
: Toast, . ,
