|
@@ -22,9 +22,9 @@ public class AlarmReceiver extends BroadcastReceiver {
|
22
|
22
|
|
23
|
23
|
Log.e(TAG,"闹钟已响");
|
24
|
24
|
NotificationCompat.Builder builder = new NotificationCompat.Builder(context);
|
25
|
|
- builder.setSmallIcon(R.mipmap.ic_launcher);
|
26
|
|
- builder.setContentTitle("测试");
|
27
|
|
- builder.setContentText("测试");
|
|
25
|
+ builder.setSmallIcon(R.mipmap.app_icon);
|
|
26
|
+ builder.setContentTitle("钱多多记账");
|
|
27
|
+ builder.setContentText("记账时间到了,赶快去记账吧");
|
28
|
28
|
builder.setAutoCancel(true);
|
29
|
29
|
builder.setOnlyAlertOnce(true);
|
30
|
30
|
// 需要VIBRATE权限
|