onReceive没有调用PendingIntent.getBroadcast

时间:2015-07-02 21:09:00

标签: android broadcastreceiver android-pendingintent

我再次遇到广播问题..

片段:

public void onReceive(Context context, Intent intent) {
  Toast.makeText(context,"yap",Toast.LENGTH_SHORT).show();
}

广播接收器:

    <receiver
        android:name=".AlarmReceiver">
        <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED" />
        </intent-filter>
    </receiver>

和清单中的接收者:

SQL Server

非常简单的代码,但仍无法正常工作...... 这个代码在活动中工作可能问题是片段? 如果您需要更多信息,请说出来。

0 个答案:

没有答案
相关问题