NotificationManager사용...
android-support-v4.jar 필요...
Intent resultIntent = new Intent(ctx, ACT01_Intro.class);
// Because clicking the notification opens a new ("special") activity, there's
// no need to create an artificial back stack.
PendingIntent resultPendingIntent =
PendingIntent.getActivity(
ctx,
0,
resultIntent,
PendingIntent.FLAG_UPDATE_CURRENT
);
//add indicate
final NotificationManager mNotifyManager =(NotificationManager)ctx.getSystemService(ctx.NOTIFICATION_SERVICE);
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(ctx)
.setSmallIcon(R.drawable.ic_launcher)
.setContentTitle("My notification")
.setContentIntent(resultPendingIntent)
.setAutoCancel(true)
.setVibrate(new long[] {200,200,500,500})
.setContentText("Hello World!");
mNotifyManager.notify(1, mBuilder.build());