Notification
簡易範例
String ns = Context.NOTIFICATION_SERVICE;
NotificationManager mNotificationManager = (NotificationManager) getSystemService(ns);
Notification notification = new Notification();
notification.defaults |= Notification.DEFAULT_VIBRATE;
mNotificationManager.notify(123, notification);
沒有留言:
張貼留言