0
的NotI代码:工作声音/振动/ LED的通知,直到我取消它?
NotificationCompat.Builder noti = new NotificationCompat.Builder(context)
.setSmallIcon(R.drawable.work_alarm_icon)
.setContentTitle("Alarm")
.setContentText(w.toString())
.setContentIntent(pintent)
.setSound(Uri.parse("android.resource://com.google.app.workalarm/" + R.raw.alarm))
.setStyle(new NotificationCompat.BigTextStyle().bigText("..."));
noti.build().flags |= Notification.FLAG_INSISTENT;
noti.setLights(Color.WHITE, 1000, 500);
noti.setVibrate(new long[]{0,500,250,500});
我要听声音/振动,并导致直到我取消它。 (当我点击按钮取消在新的活动)。 帮帮我!谢谢 !
好吧,我尝试它,但我想听听其他想法!谢谢 – user1465351 2013-04-05 06:09:35