i'm stuck with binary xml file line #6 error inflating class fragment exception ... i'm using a 3rd party library in creating my view... i need to know when exactly this exception is thrown in general, so i can work around it i have tried to remove my view and re-inflate it but nothing works ..
if (rootView != null) {
ViewGroup parent = (ViewGroup) rootView.getParent();
if (parent != null) {
parent.removeAllViews();
rootView = inflater.inflate(R.layout.near_you,
container, false);
there is my xml file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<fragment
android:id="@+id/beyondarFragment"
android:name="com.beyondar.android.fragment.BeyondarFragmentSupport"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<ImageButton
android:id="@+id/pin_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal"
android:background="@android:color/transparent"
android:src="@drawable/pin_button" />
</FrameLayout>