@Override public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { super.onCreate(savedInstanceState); View view = inflater.inflate(mLayout, container, false); return view; }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); context = getSherlockActivity(); preferences = PreferenceManager.getDefaultSharedPreferences(getSherlockActivity()); new AsyncSystemRequirement().execute(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setRetainInstance(true); mReceiver = new DetachableResultReceiver(new Handler()); mReceiver.setReceiver(this); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments().containsKey(ARG_ITEM_ID)) { mItem = Profile.ITEM_MAP.get(getArguments().getString(ARG_ITEM_ID)); } }
@Override public void onCreate(Bundle savedInstanceState) { // init value sUserId = null; sPagesId = null; callback = new JSONObject(); user = (User) getActivity().getApplicationContext(); phraseManager = new PhraseManager(getActivity().getApplicationContext()); colorView = new ColorView(getActivity().getApplicationContext()); objProfileInfo = new UserProfile(); Bundle extras = getActivity().getIntent().getExtras(); if (extras != null) { if (getActivity().getIntent().hasExtra("user_id")) { sUserId = extras.getString("user_id"); aboutme = extras.getString("aboutme"); whomeet = extras.getString("whomeet"); movies = extras.getString("movies"); interests = extras.getString("interests"); music = extras.getString("music"); } else if (getActivity().getIntent().hasExtra("page_id")) { sPagesId = extras.getString("page_id"); } } super.onCreate(savedInstanceState); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (savedInstanceState != null && mGuide == null) { mGuide = (Guide) savedInstanceState.getSerializable(SAVED_GUIDE); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setHasOptionsMenu(true); parentAct = this.getSherlockActivity(); semId = getArguments().getString("semId"); initialFragment = getArguments().getBoolean("initialFragment"); }
@Override public void onCreate(Bundle savedInstanceState) { final RoboInjector injector = RoboGuice.getInjector(getActivity()); eventManager = injector.getInstance(EventManager.class); injector.injectMembersWithoutViews(this); super.onCreate(savedInstanceState); eventManager.fire(new OnCreateEvent(savedInstanceState)); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mPageNumber = getArguments().getInt(ARG_PAGE); settings = getActivity().getSharedPreferences(FoggyMix.PREF_NAME, 0); app = FoggyMix.getInstance(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mPageNumber = getArguments() != null ? getArguments().getInt(PAGE_NUMBER_EXTRA) : -1; int width = getActivity().getWindowManager().getDefaultDisplay().getWidth(); mLeftGradient = QuranDisplayHelper.getPaintDrawable(width, 0); mRightGradient = QuranDisplayHelper.getPaintDrawable(0, width); setHasOptionsMenu(true); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments().containsKey(NETWORK_ID)) { keygen = (Keygen) getArguments().getParcelable(NETWORK_ID); thread = new KeygenThread(keygen); } setHasOptionsMenu(true); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // This fragments adds options to the action bar setHasOptionsMenu(true); mController = MessagingController.getInstance(getActivity().getApplication()); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setRetainInstance(true); if (startingtime == 0) { createTime(); } }
@Override public void onCreate(Bundle savedState) { super.onCreate(savedState); EasyTracker.getInstance().setContext(getActivity()); if (savedState != null && mTopicLeaf == null) { mTopicLeaf = (TopicLeaf) savedState.getSerializable(SAVED_TOPIC); } }
@Override public void onCreate(Bundle savedInstanceState) { Log.d(TAG, "Creating fragment"); super.onCreate(savedInstanceState); setHasOptionsMenu(true); adapter = new BacklogAdapter(getSherlockActivity(), null); preferences = PreferenceManager.getDefaultSharedPreferences(getSherlockActivity()); if (savedInstanceState != null && savedInstanceState.containsKey(BUFFER_ID)) { bufferId = savedInstanceState.getInt(BUFFER_ID); } }
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // calcular el ancho de la pantalla para colocar a la derecha el boton de desplegar DisplayMetrics metrics = Resources.getSystem().getDisplayMetrics(); int width; width = metrics.widthPixels; ExpandableListView l = (ExpandableListView) getView().findViewById(com.jorgeldra.seio.R.id.expandablelist); if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.KITKAT) { l.setIndicatorBounds(width - GetDipsFromPixel(50), width - GetDipsFromPixel(10)); } else { l.setIndicatorBoundsRelative( width - GetDipsFromPixel(50), width - GetDipsFromPixel(10)); // Solo compatible a partir de 4.3 , poner icono a la derecha } MyListProgramAdapter adaptador = new MyListProgramAdapter( getActivity(), MainActivity.almacenPrograma.listaPrograma().get(pos).getListaSesion(), pos, MainActivity.almacenPrograma.listaPrograma().get(pos).getFecha()); l.setAdapter(adaptador); /* esta forma de realizar el evento onclick solo funcionaba si en el xml solo ponemos un elemento dentro del relativelayout * */ /*l.setOnChildClickListener( new OnChildClickListener() { @Override public boolean onChildClick (ExpandableListView parent, View v, int groupPosition, int childPosition, long id) { Toast.makeText(getActivity(), "Ha pulsado " +MainActivity.almacenPrograma.listaPrograma().get(pos).getListaSesion().get(groupPosition).getListaPapers().get(childPosition).getTitle(),Toast.LENGTH_SHORT).show(); //pasamos los valores id a la activity de trabajos Intent i = new Intent(getView().getContext(), PaperActivity.class); i.putExtra("childPosition", childPosition); i.putExtra("groupPosition", groupPosition); i.putExtra("idSession", pos); //Toast.makeText(getActivity(),pos +"+"+ childPosition +""+ groupPosition,Toast.LENGTH_SHORT).show(); startActivity(i); return true; } }); */ }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mPageNumber = getArguments().getInt(ARG_PAGE); settings = getActivity().getSharedPreferences(FoggyMix.PREF_NAME, 0); app = FoggyMix.getInstance(); if (challengesList == null) { challengesList = new ArrayList<Challenge>(); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mHandler = new NotifyingAsyncQueryHandler(getActivity().getContentResolver(), this); mAdapter = new TracksAdapter(getActivity()); if (savedInstanceState != null) { // Prevent auto-load behavior on orientation change. mAutoloadTarget = false; } reloadFromArguments(getArguments()); }
@Override public void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); this.setHasOptionsMenu(true); user = (User) getActivity().getApplicationContext(); if (getArguments() != null) { type = getArguments().getString("type"); itemId = getArguments().getString("itemId"); name = getArguments().getString("name"); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mAlbumsAdapter = new AudioBrowserListAdapter(getActivity(), AudioBrowserListAdapter.ITEM_WITH_COVER); mSongsAdapter = new AudioBrowserListAdapter(getActivity(), AudioBrowserListAdapter.ITEM_WITH_COVER); mAlbumsAdapter.setContextPopupMenuListener(mContextPopupMenuListener); mSongsAdapter.setContextPopupMenuListener(mContextPopupMenuListener); mAudioController = AudioServiceController.getInstance(); mMediaLibrary = MediaLibrary.getInstance(getActivity()); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments().containsKey(NETWORK_ID)) { wifiNetwork = (WiFiNetwork) getArguments().getParcelable(NETWORK_ID); thread = new KeygenThread(wifiNetwork); } if (savedInstanceState != null) { String[] passwords = savedInstanceState.getStringArray(PASSWORD_LIST); if (passwords != null) { passwordList = new ArrayList<String>(); for (String p : passwords) passwordList.add(p); } } setHasOptionsMenu(true); }
/** When creating, retrieve this instance's number from its arguments. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (savedInstanceState != null) { SelectDateDialogFragment sd = (SelectDateDialogFragment) getSherlockActivity() .getSupportFragmentManager() .findFragmentByTag( "SelectDateDialog"); // "tag" is the string set as the tag for the dialog // when you show it if (sd != null) { // the dialog exists so update its listener sd.setListener(this); } } mNum = getArguments() != null ? getArguments().getInt("num") : 1; }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); userAdapter = new UserListAdapter(getActivity(), new UserList(), true); userView = new LinearLayout(getActivity()); userListServiceLocator = new ServiceLocator<UserListService>( this.getActivity(), UserListService.class, UserListService.UserListServiceBinder.class); // OnServiceBound needs the userAdapter so to avoid a race condition it // should be placed after the userAdapter is made. userListServiceLocator.setOnBindListener( new IOnBindListener() { @Override public void onServiceBound() { updateUserView(); } }); registerReceivers(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); context = this.getActivity(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); }
/** {@inheritDoc} */ @Override public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Create the adpater mAdapter = new SongAdapter(getSherlockActivity(), R.layout.list_item_simple); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setHasOptionsMenu(true); setRetainInstance(true); }
@Override public void onCreate(Bundle savedInstanceState) { page = getArguments().getInt(SELECTED_PAGE); super.onCreate(savedInstanceState); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mScreenName = getArguments().getString("screenName"); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); pipe = ((ToDoApplication) getActivity().getApplication()).getPipeline().get("tasks"); }