Open nitin0331 opened 10 years ago
Can you upload a test example that I can import to try it? But it looks to me that it is not related to the Beyondar Framework
@joanpuigsanz yes its may be not related to Beyondar Framework but would u plz help me how to integrate this framework with Fragment instead of Activity android
Try to upload a zipped project to reproduce the issue and I'll take a look
@joanpuigsanz in which id i can send u the code ?
A project that i can import on eclipse or android studio
@joanpuigsanz send me ur id as in comment only image file support yes i will send once i get ur ID
i have same problem.. please tell me how to fix it
@joanpuigsanz @newhuts i also wont able to fix this issue and if u find anything let me know ..
@newhuts have u sort out the issue .
Can you upload the project on dropbox and share the link here?
Hi i wanted to add navigation drawer in my app so i wanted to integrate with fragment but getting error
FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nitin.suche/com.nitin.suche.BaseActivity}: android.view.InflateException: Binary XML file line #18: Error inflating class fragment at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2060) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2085) at android.app.ActivityThread.access$600(ActivityThread.java:130) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4747) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) at dalvik.system.NativeStart.main(Native Method) Caused by: android.view.InflateException: Binary XML file line #18: Error inflating class fragment at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704) at android.view.LayoutInflater.rInflate(LayoutInflater.java:746) at android.view.LayoutInflater.rInflate(LayoutInflater.java:749) at android.view.LayoutInflater.rInflate(LayoutInflater.java:749) at android.view.LayoutInflater.inflate(LayoutInflater.java:489) at android.view.LayoutInflater.inflate(LayoutInflater.java:396) at com.nitin.suche.HomeFragment.onCreateView(HomeFragment.java:52) at android.support.v4.app.Fragment.performCreateView(Fragment.java:1500) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:938) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1115) at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682) at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1478) at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:570) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1163) at android.app.Activity.performStart(Activity.java:5018) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2033) ... 11 more Caused by: java.lang.IllegalArgumentException: Binary XML file line #18: Duplicate id 0x7f05001f, tag null, or parent id 0x0 with another fragment for com.beyondar.android.fragment.BeyondarFragmentSupport at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:296) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:676) ... 26 more
is it due to static fragment already exist in my layout ?
my code is below -
public class HomeFragment extends Fragment implements OnSeekBarChangeListener, OnClickBeyondarObjectListener{ private SeekBar mSeekBarPullCloserDistance, mSeekBarPushAwayDistance, mSeekBarMaxDistanceToRender, mSeekBarDistanceFactor; private TextView mMaxFarText, mMinFarText, mArViewDistanceText, mZfarText; private List showViewOn;
private BeyondarFragmentSupport mBeyondarFragment;
private World mWorld;
private Location location;
// mTextValues = (TextView) rootView.findViewById(R.id.textValues);
// mRadarView = (RadarView) rootView.findViewById(R.id.radarView); // // // Create the Radar plugin // mRadarPlugin = new RadarWorldPlugin(this); // // set the radar view in to our radar plugin // mRadarPlugin.setRadarView(mRadarView); // // Set how far (in meters) we want to display in the view // mRadarPlugin.setMaxDistance(100); //
// // We can customize the color of the items // mRadarPlugin.setListColor(CustomWorldHelper.LIST_TYPE_EXAMPLE_1, Color.RED); // // and also the size // mRadarPlugin.setListDotRadius(CustomWorldHelper.LIST_TYPE_EXAMPLE_1, 3);
// mWorld = CustomWorldHelper.generateObjects(this); // // .. and send it to the fragment // mBeyondarFragment.setWorld(mWorld); fetchinglocation(getActivity(), new GetDataCallBack() {
// mWorld.addPlugin(mRadarPlugin); // mRadarPlugin.setMaxDistance(100);
// if (mRadarPlugin == null) // return; // if (seekBar == mSeekBarPushAwayDistance) { // // float value = ((float) progress/(float) 10000); //// mTextviewMaxDistance.setText("Max distance Value: " + progress); // mRadarPlugin.setMaxDistance(progress); // }
// mTextValues.setText("dst factor=" + mBeyondarFragment.getDistanceFactor() + " max dst render=" // + mBeyondarFragment.getMaxDistanceToRender() + "\npull closer=" // + mBeyondarFragment.getPullCloserDistance() + " push away=" // + mBeyondarFragment.getPushAwayDistance()); }
// Intent i=new Intent(SimpleCameraWithMaxFarMinAwayActivity.this, DetailsActivity.class); // i.putExtra("id", nameid[1]); //// i.putExtra("location", location.getLatitude()+","+location.getLongitude()); // startActivity(i); } }); // Button button = (Button) recycledView.rootView.findViewById(R.id.button); // button.setOnClickListener(SimpleCameraWithRadarActivity.this);
// locationlatlong=location.getLatitude()+","+location.getLongitude(); } else{ Toast.makeText(act, "lOCATION NOT AVAILABLE", Toast.LENGTH_SHORT).show(); progressDialog.dismiss(); } } }; myloc.getLocation(act, lr); } }