From 5cda46db3b2f849790f5a0f9ef0163038bb57d1e Mon Sep 17 00:00:00 2001 From: zhongdeyu Date: Wed, 8 Apr 2015 21:52:11 -0400 Subject: [PATCH] Update NotificationStatusBarWithCustomViewActivity.java change lines 39: from "course.examples.Notification.StatusBarWithCustomView", to "course.examples.notification.statusbarwithcustomview", in order to make it cinsistent with line 34: .parse("android.resource://course.examples.notification.statusbarwithcustomview/" otherwise, the code cannot be executed and generates LogCat as shown under the following URL: https://class.coursera.org/androidpart2-002/forum/thread?thread_id=62 "NotificationStatusBarWithCustomView: Bad notification posted, Couldn't expand RemoteViews for: StatusBarNotification" --- .../NotificationStatusBarWithCustomViewActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Examples/NotificationStatusBarWithCustomView/src/course/examples/notification/statusbarwithcustomview/NotificationStatusBarWithCustomViewActivity.java b/Examples/NotificationStatusBarWithCustomView/src/course/examples/notification/statusbarwithcustomview/NotificationStatusBarWithCustomViewActivity.java index acee190ad..e0d332b9f 100644 --- a/Examples/NotificationStatusBarWithCustomView/src/course/examples/notification/statusbarwithcustomview/NotificationStatusBarWithCustomViewActivity.java +++ b/Examples/NotificationStatusBarWithCustomView/src/course/examples/notification/statusbarwithcustomview/NotificationStatusBarWithCustomViewActivity.java @@ -31,12 +31,12 @@ public class NotificationStatusBarWithCustomViewActivity extends Activity { // Notification Sound and Vibration on Arrival private Uri soundURI = Uri - .parse("android.resource://course.examples.Notification.StatusBarWithCustomView/" + .parse("android.resource://course.examples.notification.statusbarwithcustomview/" + R.raw.alarm_rooster); private long[] mVibratePattern = { 0, 200, 200, 300 }; RemoteViews mContentView = new RemoteViews( - "course.examples.Notification.StatusBarWithCustomView", + "course.examples.notification.statusbarwithcustomview", R.layout.custom_notification); @Override @@ -82,4 +82,4 @@ public void onClick(View v) { }); } -} \ No newline at end of file +}