public void NotificacionNueva(String titulo, String texto, String info, String tick){
long[] pattern = new long[]{1000,500,1000};
Uri defaultSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
NotificationCompat.Builder mBuilder =
new NotificationCompat.Builder(Main.this)
.setSmallIcon(android.R.drawable.stat_sys_warning)
.setLargeIcon((((BitmapDrawable) getResources()
.getDrawable(R.mipmap.ic_launcher)).getBitmap()))
.setContentTitle(titulo)
.setContentText(texto)
.setContentInfo(info)
.setTicker(tick)
.setVibrate(pattern)
.setLights(Color.RED, 1, 0)
.setSound(defaultSound);
Intent notIntent =
new Intent(Main.this, Main.class);
PendingIntent contIntent =
PendingIntent.getActivity(
Main.this, 0, notIntent, 0);
mBuilder.setContentIntent(contIntent);
NotificationManager mNotificationManager =
(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
mNotificationManager.notify(1, mBuilder.build());
}