【发布时间】:2012-12-29 05:07:03
【问题描述】:
通知代码:
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 的自动完成功能来找到正确的功能,但没有一个工作。我也搜了不少,没有运气。
我该如何解决这个问题?
【问题讨论】:
标签: android notifications brightness