List of usage examples for android.content Intent EXTRA_TITLE
String EXTRA_TITLE
To view the source code for android.content Intent EXTRA_TITLE.
Click Source Link
From source file:org.lansir.beautifulgirls.ui.BaseSinglePaneActivity.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_singlepane_empty); final String customTitle = getIntent().getStringExtra(Intent.EXTRA_TITLE); setTitle(customTitle != null ? customTitle : getTitle()); if (savedInstanceState == null) { mFragment = onCreatePane();//w w w.ja va2s .c o m mFragment.setArguments(intentToFragmentArguments(getIntent())); getSupportFragmentManager().beginTransaction().add(R.id.root_container, mFragment, "single_pane") .commit(); } else { mFragment = getSupportFragmentManager().findFragmentByTag("single_pane"); } }
From source file:com.easymint.ui.BaseSinglePaneActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_singlepane_empty); getActivityHelper().setupActionBar(getTitle(), 0); final String customTitle = getIntent().getStringExtra(Intent.EXTRA_TITLE); getActivityHelper().setActionBarTitle(customTitle != null ? customTitle : getTitle()); if (savedInstanceState == null) { mFragment = onCreatePane();//from w w w. ja va 2 s . com mFragment.setArguments(intentToFragmentArguments(getIntent())); getSupportFragmentManager().beginTransaction().add(R.id.root_container, mFragment).commit(); } }
From source file:com.googlecode.eyesfree.brailleback.WebViewDialog.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTitle(getIntent().getIntExtra(Intent.EXTRA_TITLE, R.string.pref_os_license_title)); setContentView(R.layout.activity_licenses); WebView webView = (WebView) findViewById(R.id.content); webView.loadUrl(getIntent().getStringExtra(Intent.EXTRA_STREAM)); }
From source file:org.dvbviewer.controller.ui.base.BaseSinglePaneActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_singlepane_empty); final String customTitle = getIntent().getStringExtra(Intent.EXTRA_TITLE); if (getSupportActionBar() != null) { getSupportActionBar().setTitle(customTitle != null ? customTitle : getTitle()); }/*from w w w . j a v a 2s . c o m*/ if (savedInstanceState == null) { mFragment = onCreatePane(); if (mFragment.getArguments() == null) { mFragment.setArguments(intentToFragmentArguments(getIntent())); } getSupportFragmentManager().beginTransaction() .add(R.id.root_container, mFragment, mFragment.getClass().getName()).commit(); } }
From source file:org.bitbucket.ntakimura.android.support.fragment.AbstractSettingsFragment.java
@Override public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); //addPreferencesFromResource(R.xml.settings); Bundle args = new Bundle(); args.putParcelableArrayList(OpenSourceLicenseFragment.EXTRA_OSS, getOpenSourceSoftware()); mOssFragment = new OpenSourceLicenseFragment(); mOssFragment.setArguments(args);/*from w w w . ja va 2 s . co m*/ Bundle policyArgs = new Bundle(); policyArgs.putInt(Intent.EXTRA_TITLE, R.string.privacy_policy); policyArgs.putInt(Intent.EXTRA_TEXT, R.raw.privacypolicy); mPrivacyPolicyFragment = new TextDialogFragment(); mPrivacyPolicyFragment.setArguments(policyArgs); Bundle tosArgs = new Bundle(); tosArgs.putInt(Intent.EXTRA_TITLE, R.string.terms_of_service); //tosArgs.putInt(Intent.EXTRA_TEXT, R.raw.termsofservice); mTermsOfServiceFragment = new TextDialogFragment(); mTermsOfServiceFragment.setArguments(tosArgs); PreferenceScreen versionPreferences = (PreferenceScreen) getPreferenceScreen() .findPreference(getString(R.string.key_settings_about_appinfo)); try { versionPreferences.setSummary((getActivity().getPackageManager() .getPackageInfo(getActivity().getPackageName(), 0).versionName)); } catch (NameNotFoundException e) { e.printStackTrace(); } }
From source file:pt.up.mobile.ui.BaseSinglePaneActivity.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_singlepane_empty); final String customTitle = getIntent().getStringExtra(Intent.EXTRA_TITLE); if (customTitle != null) actionbar.setTitle(customTitle); if (!UIUtils.isTablet(getApplicationContext())) { drawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); drawerList = (ListView) findViewById(R.id.drawer_list); drawerToggle = new ActionBarDrawerToggle(this, drawerLayout, R.drawable.icon, 0, 0) { public void onDrawerClosed(View view) { if (customTitle != null) getSupportActionBar().setTitle(customTitle); super.onDrawerClosed(view); }/*from w ww. j a v a2 s .c om*/ public void onDrawerOpened(View drawerView) { getSupportActionBar().setTitle(R.string.app_name); super.onDrawerOpened(drawerView); } }; drawerLayout.setDrawerListener(drawerToggle); } if (savedInstanceState == null) { mFragment = onCreatePane(); mFragment.setArguments(intentToFragmentArguments(getIntent())); getSupportFragmentManager().beginTransaction().add(R.id.root_container, mFragment).commit(); } }
From source file:com.gdgdevfest.android.apps.devfestbcn.ui.phone.MapActivity.java
@Override public void onSandboxRoomSelected(String trackId, String roomTitle) { Intent intent = new Intent(this, TrackDetailActivity.class); intent.setData(ScheduleContract.Tracks.buildSandboxUri(trackId)); intent.putExtra(Intent.EXTRA_TITLE, roomTitle); startActivity(intent);//from w w w.j av a 2 s. co m }
From source file:eu.inmite.apps.smsjizdenka.framework.activity.BaseSinglePaneActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(getContentViewResourceId()); if (getIntent().hasExtra(Intent.EXTRA_TITLE)) { setTitle(getIntent().getStringExtra(Intent.EXTRA_TITLE)); }/*from www.ja v a2 s. c o m*/ if (savedInstanceState == null) { Fragment fragment = onCreatePane(); if (fragment != null) { Bundle b = fragment.getArguments(); if (b == null) { b = new Bundle(); } b.putAll(intentToFragmentArguments(getIntent())); fragment.setArguments(b); getSupportFragmentManager().beginTransaction().add(R.id.root_container, fragment, ROOT_FRAGMENT_TAG) .commit(); } } }
From source file:org.deviceconnect.android.client.fragment.AbstractSettingsFragment.java
@Override public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.settings); Bundle args = new Bundle(); args.putParcelableArrayList(OpenSourceLicenseFragment.EXTRA_OSS, getOpenSourceSoftware()); mOssFragment = new OpenSourceLicenseFragment(); mOssFragment.setArguments(args);/* ww w .j a v a 2 s . c om*/ Bundle policyArgs = new Bundle(); policyArgs.putInt(Intent.EXTRA_TITLE, R.string.privacy_policy); policyArgs.putInt(Intent.EXTRA_TEXT, R.raw.privacypolicy); mPrivacyPolicyFragment = new TextDialogFragment(); mPrivacyPolicyFragment.setArguments(policyArgs); Bundle tosArgs = new Bundle(); tosArgs.putInt(Intent.EXTRA_TITLE, R.string.terms_of_service); tosArgs.putInt(Intent.EXTRA_TEXT, R.raw.termsofservice); mTermsOfServiceFragment = new TextDialogFragment(); mTermsOfServiceFragment.setArguments(tosArgs); PreferenceScreen versionPreferences = (PreferenceScreen) getPreferenceScreen() .findPreference(getString(R.string.key_settings_about_appinfo)); try { versionPreferences.setSummary((getActivity().getPackageManager() .getPackageInfo(getActivity().getPackageName(), 0).versionName)); } catch (NameNotFoundException e) { e.printStackTrace(); } CheckBoxPreference checkBoxSslPreferences = (CheckBoxPreference) getPreferenceScreen() .findPreference(getString(R.string.key_settings_dconn_ssl)); checkBoxSslPreferences.setOnPreferenceChangeListener(this); EditTextPreference editHostPreferences = (EditTextPreference) getPreferenceScreen() .findPreference(getString(R.string.key_settings_dconn_host)); editHostPreferences.setOnPreferenceChangeListener(this); editHostPreferences.setSummary(editHostPreferences.getText()); EditTextPreference editPortPreferences = (EditTextPreference) getPreferenceScreen() .findPreference(getString(R.string.key_settings_dconn_port)); editPortPreferences.setOnPreferenceChangeListener(this); editPortPreferences.setSummary(editPortPreferences.getText()); // Local OAuth SettingsActivity activity = (SettingsActivity) getActivity(); EditTextPreference editClientIdPreferences = (EditTextPreference) getPreferenceScreen() .findPreference(getString(R.string.key_settings_dconn_client_id)); editClientIdPreferences.setSummary(activity.getClientId()); EditTextPreference editClientSecretPreferences = (EditTextPreference) getPreferenceScreen() .findPreference(getString(R.string.key_settings_dconn_client_secret)); editClientSecretPreferences.setSummary(activity.getClientSecret()); EditTextPreference editAccessTokenPreferences = (EditTextPreference) getPreferenceScreen() .findPreference(getString(R.string.key_settings_dconn_access_token)); editAccessTokenPreferences.setSummary(activity.getAccessToken()); }
From source file:com.goliathonline.android.kegbot.ui.DashboardFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View root = inflater.inflate(R.layout.fragment_dashboard, container); // Attach event handlers root.findViewById(R.id.home_btn_drink).setOnClickListener(new View.OnClickListener() { public void onClick(View view) { fireTrackerEvent("Drinks"); if (UIUtils.isHoneycombTablet(getActivity())) { startActivity(new Intent(getActivity(), SessionsMultiPaneActivity.class)); } else { final Intent intent = new Intent(Intent.ACTION_VIEW, KegbotContract.Drinks.CONTENT_URI); intent.putExtra(Intent.EXTRA_TITLE, getString(R.string.title_drinks)); intent.putExtra(DrinksFragment.EXTRA_NEXT_TYPE, DrinksFragment.NEXT_TYPE_DRINKS); startActivity(intent);/*from w w w .j a v a 2 s . c om*/ } } }); root.findViewById(R.id.home_btn_sessions).setOnClickListener(new View.OnClickListener() { public void onClick(View view) { fireTrackerEvent("Sessions"); // Launch sessions list if (UIUtils.isHoneycombTablet(getActivity())) { startActivity(new Intent(getActivity(), SessionsMultiPaneActivity.class)); } else { final Intent intent = new Intent(Intent.ACTION_VIEW, KegbotContract.Drinks.CONTENT_URI); intent.putExtra(Intent.EXTRA_TITLE, getString(R.string.title_session_tracks)); intent.putExtra(DrinksFragment.EXTRA_NEXT_TYPE, DrinksFragment.NEXT_TYPE_DRINKS); startActivity(intent); } } }); root.findViewById(R.id.home_btn_starred).setOnClickListener(new View.OnClickListener() { public void onClick(View view) { fireTrackerEvent("Starred"); // Launch list of sessions and vendors the user has starred startActivity(new Intent(getActivity(), StarredActivity.class)); } }); root.findViewById(R.id.home_btn_users).setOnClickListener(new View.OnClickListener() { public void onClick(View view) { fireTrackerEvent("Sandbox"); // Launch vendors list if (UIUtils.isHoneycombTablet(getActivity())) { startActivity(new Intent(getActivity(), VendorsMultiPaneActivity.class)); } else { final Intent intent = new Intent(Intent.ACTION_VIEW, KegbotContract.Users.CONTENT_URI); //intent.putExtra(Intent.EXTRA_TITLE, getString(R.string.title_vendor_tracks)); //intent.putExtra(TracksFragment.EXTRA_NEXT_TYPE, // TracksFragment.NEXT_TYPE_VENDORS); //startActivity(intent); } } }); root.findViewById(R.id.home_btn_keg).setOnClickListener(new View.OnClickListener() { public void onClick(View view) { fireTrackerEvent("Kegs"); if (UIUtils.isHoneycombTablet(getActivity())) { startActivity(new Intent(getActivity(), SessionsMultiPaneActivity.class)); } else { final Intent intent = new Intent(Intent.ACTION_VIEW, KegbotContract.Kegs.CONTENT_URI); intent.putExtra(Intent.EXTRA_TITLE, getString(R.string.title_drinks)); intent.putExtra(DrinksFragment.EXTRA_NEXT_TYPE, KegsFragment.NEXT_TYPE_KEGS); startActivity(intent); } } }); root.findViewById(R.id.home_btn_announcements).setOnClickListener(new View.OnClickListener() { public void onClick(View view) { // splicing in tag streamer fireTrackerEvent("Settings"); Intent intent = new Intent(getActivity(), PreferencesActivity.class); startActivity(intent); } }); return root; }