getpreference and url share