Код для уведомления:
mNotificationManager =
(NotificationManager)getSystemService(NOTIFICATION_SERVICE);
final Notification notifyDetails =
new Notification(R.drawable.ic_launcher,"New Alert, Click Me!",System.currentTimeMillis());
Context context = getApplicationContext();
notifyDetails.
CharSequence contentTitle = "Notification Details...";
CharSequence contentText = "Browse Android Official Site by clicking me";
Intent notifyIntent = new Intent(android.content.Intent.ACTION_VIEW,Uri.parse("http://www.android.com"));
PendingIntent intent1 =
PendingIntent.getActivity(this, 0,
notifyIntent, android.content.Intent.FLAG_ACTIVITY_NEW_TASK);
notifyDetails.setLatestEventInfo(context, contentTitle, contentText, intent1);
mNotificationManager.notify(SIMPLE_NOTFICATION_ID, notifyDetails);
Мое уведомление работает нормально, я хочу, чтобы яркость экрана увеличивалась до определенного значения, когда всплывает уведомление.
Я использовал функцию автоматического завершения Eclipse, чтобы найти нужную функцию, но ни одна из них не работает. Я тоже искал совсем немного, не повезло.
Как мне это решить?