protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);


            if (Resources.Configuration.Orientation == Android.Content.Res.Orientation.Landscape)
            {
                Finish();
                return;
            }

            if (savedInstanceState == null)
            {
                //Insert Details Fragment to frame
                DetailsFragment details = new DetailsFragment();
                Bundle b = new Bundle();
                b.PutInt("index", Intent.GetIntExtra("index", 0));
                details.Arguments = b;
                SupportFragmentManager.BeginTransaction().Add(Android.Resource.Id.Content, details).Commit();

            }




        }
        public static DetailsFragment NewInstance(int index)
        {
            DetailsFragment f = new DetailsFragment();

            Bundle args = new Bundle();
            args.PutInt("index", index);
            f.Arguments= args;

            return f;
        }