code: function () {
  	    	var deferred = $q.defer();
  	    	var promise = deferred.promise;
              
              function ok(value){
                  deferred.resolve(value);
              }
              
              function errorCallback(error){
                  deferred.reject(new Error(error));
              }
              
              if($window.plugins){
                  $window.plugins.appPreferences.show()
                      .then(ok, errorCallback);
              } else {
                  deferred.reject(new Error(this.pluginNotEnabledMessage));
              }
  	    	
  	    	this.decoratePromise(promise);
  	    	return promise;
  	    }
docs: Show the application preferences.
  @returns Returns a promise.