android下设置默认apn

/**
* set default apn
* @param id
*/
private void (int id) {
  ContentResolver cr = getContentResolver();
  ContentValues cv = new ContentValues();
  cv.put("apn_id", id);
  try {
    cr.update(preferapnUri, cv, null, null);
  } catch (Exception e) {
    // TODO Auto-generated catch block
  e.printStackTrace();
  }
}