add Network.getNetworkPreference method