Loading tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java +7 −4 Original line number Original line Diff line number Diff line Loading @@ -167,10 +167,13 @@ public class StatusBarTest extends TestActivity }, }, new Test("Priority notification") { new Test("Priority notification") { public void run() { public void run() { Notification not = new Notification( Notification not = new Notification(); R.drawable.stat_sys_phone, not.icon = R.drawable.stat_sys_phone; "Incoming call from: Imperious Leader", not.when = System.currentTimeMillis()-(1000*60*60*24); System.currentTimeMillis()-(1000*60*60*24) not.setLatestEventInfo(StatusBarTest.this, "Incoming call", "from: Imperious Leader", null ); ); not.flags |= Notification.FLAG_HIGH_PRIORITY; not.flags |= Notification.FLAG_HIGH_PRIORITY; Intent fullScreenIntent = new Intent(StatusBarTest.this, TestAlertActivity.class); Intent fullScreenIntent = new Intent(StatusBarTest.this, TestAlertActivity.class); Loading Loading
tests/StatusBar/src/com/android/statusbartest/StatusBarTest.java +7 −4 Original line number Original line Diff line number Diff line Loading @@ -167,10 +167,13 @@ public class StatusBarTest extends TestActivity }, }, new Test("Priority notification") { new Test("Priority notification") { public void run() { public void run() { Notification not = new Notification( Notification not = new Notification(); R.drawable.stat_sys_phone, not.icon = R.drawable.stat_sys_phone; "Incoming call from: Imperious Leader", not.when = System.currentTimeMillis()-(1000*60*60*24); System.currentTimeMillis()-(1000*60*60*24) not.setLatestEventInfo(StatusBarTest.this, "Incoming call", "from: Imperious Leader", null ); ); not.flags |= Notification.FLAG_HIGH_PRIORITY; not.flags |= Notification.FLAG_HIGH_PRIORITY; Intent fullScreenIntent = new Intent(StatusBarTest.this, TestAlertActivity.class); Intent fullScreenIntent = new Intent(StatusBarTest.this, TestAlertActivity.class); Loading