Ejemplo n.º 1
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.onCreate(savedInstanceState);
    // getActivity().setContentView(R.layout.fragment_listen);
    bindToService();
    mProgressDialog = new ProgressDialog(getActivity().getBaseContext());

    // initializeButtons();
    // setupStationPicker();

  }
Ejemplo n.º 2
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   demo = new Demo();
   groups = new ArrayList<GroupChat>();
   groups = demo.getGrs();
 }
Ejemplo n.º 3
0
 // Store instance variables based on arguments passed
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   cafename = getArguments().getString("cafename");
   position = getArguments().getInt("position", 0);
   drinksByseletedCategory = getArguments().getParcelableArrayList("productsList");
 }
Ejemplo n.º 4
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   items = new ArrayList<Task>();
   db = new DatabaseInterface(getActivity().getApplicationContext());
   items = db.getTasks();
   super.onCreate(savedInstanceState);
 }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   controller = new Controller(this.getActivity().getApplicationContext());
   sharedPreferences = getActivity().getSharedPreferences(MyPREFERENCES, Context.MODE_PRIVATE);
   getActivity().setTitle(R.string.profile);
 }
Ejemplo n.º 6
0
 @Override
 public void onCreate(@Nullable Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   if (getArguments().containsKey(ITEMS_TAG)) {
     this.crickets = getArguments().getStringArrayList(ITEMS_TAG);
   }
 }
Ejemplo n.º 7
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // drawer labels
    titles = getActivity().getResources().getStringArray(R.array.nav_drawer_labels);
  }
Ejemplo n.º 8
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   if (getArguments() != null) {
     position = getArguments().getInt(ARG_POSITION);
   }
 }
Ejemplo n.º 9
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   //        Log.w("AppClient", "base onCreate");
   // init application
   ui = (BaseUi) getActivity();
 }
Ejemplo n.º 10
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   if (getArguments() != null) {
     //            mParamItemNumber = getArguments().getInt(ARG_SECTION_NUMBER);
   }
 }
Ejemplo n.º 11
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   this.preferences = new DilbertPreferences(getActivity());
   this.zoomLevel = preferences.getDefaultZoomLevel();
   setHasOptionsMenu(true);
 }
Ejemplo n.º 12
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   if (mBucketId == null) {
     mBucketId = savedInstanceState.getString(BUCKET_ID);
   }
 }
Ejemplo n.º 13
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   hideSoftKeyboard();
   local_dtos = getArguments().getParcelableArrayList("local_dtos");
   busqueda = getArguments().getString("busqueda");
 }
Ejemplo n.º 14
0
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    ScaleOutput scale = new ScaleOutput();
    String type = scale.getType();

    mPageNumber = getArguments().getInt(ARG_PAGE);
  }
Ejemplo n.º 15
0
 /** Retrieving this instance's number from its arguments. */
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   myListMan = new ListManager(activity);
   // categoryList = myListMan.getCategoriesAndFilters();
   initVars();
 }
Ejemplo n.º 16
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   if (getArguments() != null) {
     mParam1 = getArguments().getString(ARG_PARAM1);
   }
 }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   mUserLearnedDrawer =
       PreferencesEditor.getBooleanPreference(
           Dribbble.getContext(), PREF_USER_LEARNED_DRAWER, false);
 }
Ejemplo n.º 18
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   if (getArguments() != null) {
     mImageInfoList = (ArrayList<ImageInfo>) getArguments().getSerializable(ARG_PARAM1);
   }
 }
Ejemplo n.º 19
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   context = this.getActivity().getApplication();
   adapterNumber = new ArrayAdapter<>(context, R.layout.spinnerlist, number);
   map = new HashMap<String, String>();
 }
Ejemplo n.º 20
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   username =
       PreferenceManager.getDefaultSharedPreferences(getContext()).getString("username", "");
   data = new ArrayList<>();
 }
  @Override
  public void onCreate(Bundle savedInstanceState) {

    listaComments = new ArrayList<Comment>();
    preferences = getActivity().getSharedPreferences(Constantes.SP_FILE, Context.MODE_PRIVATE);
    commentsadapter =
        new ListaCommentsCustomAdapter(getActivity(), R.layout.linea_comments, listaComments);

    configurarToolbar();

    Bundle args = getArguments();
    if (args != null) {
      if (args.getParcelable("event")
          != null) { // this should happens when showing details of a event
        event = args.getParcelable("event");
        // new getImage().execute("cartel" + event.getId() + ".jpg");
      } else {
        if (args.getString("idevento")
            != null) { // si ha llegado una notificacion con la id del evento que hay que enseñar
          new CargarEvento().execute(args.getString("idevento"));
        }
      }

      new LoadComments().execute(Integer.toString(Constantes.NUMBER_MAX_COMMENTS_SHOW));
    }

    super.onCreate(savedInstanceState);
  }
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    mVolleyRequestQueue = Volley.newRequestQueue(getActivity());
    intilizeStatic();
    mMovieAdapter = new MovieAdapter(getActivity(), null, 0);
    trailerDataModified.set(false);
    reviewDataModified.set(false);
    movieDetailsModified.set(false);
    movieMinutesModified.set(false);

    if (savedInstanceState != null) {
      synchronized (mMovieId) {
        mMovieId = savedInstanceState.getLong(sMovieIdKey);
        YouTubeFirstTrailerURL = savedInstanceState.getParcelable("ShareYoutubeLinkKey");
        if (YouTubeFirstTrailerURL != null)
          if (mShareActionProvider != null) {
            mMenu.findItem(R.id.action_share).setVisible(true);
          } else Log.e(LOG_TAG, "mShareActionProvider not set");
        try {
          mMovieId.notifyAll();
        } catch (IllegalMonitorStateException x) {
        }
      }
      Bundle b = new Bundle();
      b.putLong(sMovieIdKey, mMovieId);
      getLoaderManager().restartLoader(MovieQuery.DETAIL_LOADER, b, this);
      getLoaderManager().restartLoader(TrailerQuery.TRAILER_LOADER, b, this);
      getLoaderManager().restartLoader(ReviewQuery.REVIEW_LOADER, b, this);
    }
  }
Ejemplo n.º 23
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   context = getActivity();
   mLists = new Vector<HashMap<String, Object>>();
   adapter = new ExpandListViewAdapter(context, mLists);
 }
Ejemplo n.º 24
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   mContext = getActivity().getApplicationContext();
   // resolve dependency injections
   SoccerPoolsApplication.getApplicationComponent().inject(this);
 }
Ejemplo n.º 25
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    RequestQueue queue = Volley.newRequestQueue(getActivity());
    // http://www.omdbapi.com/?plot=short&amp;r=json&amp;i=
    String url = getString(R.string.episode_detail_url) + getImDBId();

    final EpisodeBaseActivity baseActivity = (EpisodeBaseActivity) getActivity();
    baseActivity.showLoadingIndicator();

    StringRequest stringRequest =
        new StringRequest(
            Request.Method.GET,
            url,
            new Response.Listener<String>() {
              @Override
              public void onResponse(String response) {
                EpisodeDetails episodeDetails =
                    EpisodeDetailResponseParser.parseEpisodeDetails(response);

                if (episodeDetails != null) {
                  TextView valYear = (TextView) getActivity().findViewById(R.id.valYear);
                  valYear.setText(episodeDetails.getYear());

                  TextView valRated = (TextView) getActivity().findViewById(R.id.valRated);
                  valRated.setText(episodeDetails.getRated());

                  TextView valReleased = (TextView) getActivity().findViewById(R.id.valReleased);
                  valReleased.setText(episodeDetails.getReleasedDate());

                  TextView valSeason = (TextView) getActivity().findViewById(R.id.valSeason);
                  valSeason.setText(episodeDetails.getSeasonNumber());

                  TextView valEpisode = (TextView) getActivity().findViewById(R.id.valEpisode);
                  valEpisode.setText(episodeDetails.getEpisodeNumber());

                  TextView valRuntime = (TextView) getActivity().findViewById(R.id.valRuntime);
                  valRuntime.setText(episodeDetails.getRunDuration());

                  getActivity().setTitle(episodeDetails.getTitle());
                  baseActivity.hideLoadingIndicator();
                } else {
                  baseActivity.showErrorDialog(
                      getString(R.string.errorAlertTitle), getString(R.string.errorMessage));
                  baseActivity.hideLoadingIndicator();
                }
              }
            },
            new Response.ErrorListener() {

              @Override
              public void onErrorResponse(VolleyError error) {
                baseActivity.hideLoadingIndicator();
                baseActivity.showErrorDialog(
                    getString(R.string.errorAlertTitle), getString(R.string.errorMessage));
              }
            });
    queue.add(stringRequest);
  }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   if (getArguments() != null) {
     mQuestion = getArguments().getParcelable(Question.class.getSimpleName());
   }
 }
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    PreferenceManager.setDefaultValues(getActivity(), R.xml.prefs, false);
    setHasOptionsMenu(true);
    initDataSet();
    mSharedPref = PreferenceManager.getDefaultSharedPreferences(getActivity());
    mThemeChangedReceiver =
        new BroadcastReceiver() {

          @Override
          public void onReceive(Context context, Intent intent) {
            log("Broadcast received: ");
            getActivity().recreate();
            ThemeUtils.updateNavBar(getActivity());
          }
        };

    mNavChangedReceiver =
        new BroadcastReceiver() {

          @Override
          public void onReceive(Context context, Intent intent) {
            log("Broadcast received: ");
            ThemeUtils.updateNavBar(getActivity());
          }
        };

    // Register receiver
    getActivity()
        .registerReceiver(mThemeChangedReceiver, new IntentFilter(INTENT_FILTER_THEME_CHANGED));
    getActivity()
        .registerReceiver(mNavChangedReceiver, new IntentFilter(INTENT_FILTER_NAV_CHANGED));
  }
Ejemplo n.º 28
0
  @Override
  public void onCreate(Bundle savedInstanceState) {

    setHasOptionsMenu(true);
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
  }
Ejemplo n.º 29
0
    @Override
    public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);

      // Make sure this Fragment is retained over a configuration change
      setRetainInstance(true);
    }
Ejemplo n.º 30
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   Bundle bundle = this.getArguments();
   i = bundle.getInt("page", 0);
   user = images.get(i);
 }