解决方案 »

  1.   


    这个是apn的开关,修改了apn和type类型,然后使用这个apn上不了网。我想知道有些应用程序会在自己内部预置apn,在连网时不再使用 ”content://telephony/carriers/preferapn“中保存的apn,这种情况下是怎么实现的?怎么能得到该apn
      

  2.   


    不想使用“content://telephony/carriers/preferapn”的话,就得更新preferapn的内容。更新核心代码如下:         ContentValues values = new ContentValues();  
             values.put("apn_id", _id);  
             ContentResolver resolver = getContentResolver();  
             int updateRow = resolver.update(PREFERRED_APN_URI, values, null, null);  _id为此APN在"content://telephony/carriers"中的序号详细见
    自定义移动网络接入点
    http://blog.csdn.net/sodino/archive/2010/09/30/5916641.aspx希望有帮助
      

  3.   

    我这边不是要更新preferapn的内容。例如接收彩信时,apn会自动切换成type为mms的apn,类似的有些应用程序也会有自己的apn,那这种情况是怎么实现apn的切换的?