Fixing issue #479 - Unable to inflate fragments

Creating fragments using the same method used by `android.support.v4.app.FragmentActivity`.
closes #479