Fragment does not show up

I am new to fragments. I have a BroadcastReceiver in my mainactivity where I call from a baseadapter and I use this code to show a fragment but never shows up! BroadcastReceiver mBroadcastReceiver = …