我无法弄清楚错误,请帮助这是代码。我不断收到“Toast 类型中的方法 makeText(Context,CharSequence,int)不适用于参数(MyBroadCastReceiver,String,int)”
public class MyBroadCastReceiver extends BroadCastReceiver {
public void onReceive(Context context, Intent alarmIntent) {
// TODO Auto-generated method stub
Toast.makeText(MyBroadCastReceiver.this, "Alarm worked", Toast.LENGTH_LONG).show();
}
}