当我从 c2dm 收到响应时,意图对象请求代码中出现错误:
Intent registrationIntent = new Intent("com.google.android.c2dm.intent.REGISTER");
registrationIntent.putExtra("app", PendingIntent.getBroadcast(this, 0, new Intent(), 0));
registrationIntent.putExtra("sender", "achalrajpoot1@gmail.com");
当我得到响应时出现错误:
public void onReceive(Context context, Intent intent)
{
if (intent.getStringExtra("error") == null)
{
System.out.println("Error in registration ");
}
}
if() 条件为真,为什么?
此错误的可能原因是什么?