大家好,我使用下面的一段代码切换接入点:ContentResolver resolver = _context.getContentResolver();
ContentValues values = new ContentValues();
values.put("apn_id", id);
resolver.update(PREFERRED_APN_URI, values, null, null);注册了下面的广播接收器:public void onReceive(Context context, Intent intent)
{
String action = intent.getAction();

if (action.equals(ConnectivityManager.CONNECTIVITY_ACTION))
{
              // do something
}
}在其他的Android手机上,切换接入点正常,而且能够接收到切换成功后的广播事件。
但是在乐Phone上,切换接入点也正常,但是接收不到切换接入点后的广播事件,我尝试了一下,在Apn设置界面改变接入点的时候,广播事件是能够接收到的,但是使用上面切换接入点的代码,就接收不到,请问这是什么原因?以及如何解决?
谢谢。