Preference getIntent - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Preference getIntent method.

This code example shows how to use the following methods:getIntent
This code example shows how to use the following methods:getIntent
This code example shows how to use the following methods:getIntent
This code example shows how to use the following methods:getIntent
         // 20100426 hs.moon@lge.com for adding Divx Vod Registration menu [START} 
         findPreference("divx_reg").setOnPreferenceClickListener (
         new Preference.OnPreferenceClickListener () {
             public boolean onPreferenceClick(Preference preference) {
                 try { 
                     startActivity (preference.getIntent());
                 } catch ( ActivityNotFoundException e ) {
                     Log.e ( TAG , "Unable to launch activity Divx reg" );
                 } 
                 return true; 
             } 
         } );  
	// 20100426 hs.moon@lge.com for adding Divx Vod Registration menu [END] 
          
// LGE_WCDMA_FEATURE_MERGE  END 
         
        // These are contained in the "container" preference group 
        PreferenceGroup parentPreference = (PreferenceGroup) findPreference(KEY_CONTAINER);
        Utils.updatePreferenceToSpecificActivityOrRemove(this, parentPreference, KEY_TERMS,
                Utils.UPDATE_PREFERENCE_FLAG_SET_TITLE_TO_MATCHING_ACTIVITY); 
4
CodeRank
This code example shows how to use the following methods:getIntent
This code example shows how to use the following methods:getIntent
        } 
 
    } 
 
    private boolean deviceSettingsAppExists() { 
        Intent intent = mDeviceSettingsApp.getIntent();
        if (intent != null) {
            PackageManager pm = mContext.getPackageManager();
            List<ResolveInfo> list = pm.queryIntentActivities(intent, PackageManager.GET_META_DATA);
            int listSize = list.size();
            return (listSize > 0) ? true : false;
 
        } 
        return false; 
 
    } 
 
    @Override 
    public boolean onPreferenceChange(Preference preference, Object newValue) {
        String value = (String) newValue;
4
CodeRank
This code example shows how to use the following methods:getIntent
    public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {
        boolean value;
 
        /* Preference Screens */ 
        if (preference == mPowerPicker) {
            startActivity(mPowerPicker.getIntent());
        } 
        if (preference == mPowerOrder) {
            startActivity(mPowerOrder.getIntent());
        } 
 
        if (preference == mPowerWidget) {
            value = mPowerWidget.isChecked();
            Settings.System.putInt(getContentResolver(), "expanded_view_widget",
                    value ? 1 : 0);
        } 
 
        if (preference == mPowerWidgetHideOnChange) {
            value = mPowerWidgetHideOnChange.isChecked();
            Settings.System.putInt(getContentResolver(), "expanded_hide_onchange",
4
CodeRank

Related Preference getIntent Questions & Answers:

getIntent Method Overview
Return the Intent associated with this Preference.
See Code Examples for other Android Preference Methods: