我reasearched這個,還有這個代碼是我得到MainActivity崩潰隨着狀態欄通知
應用崩潰,當我打開在MainActivity
NotificationCompat.Builder builder =
new NotificationCompat.Builder(MainActivity.this)
.setSmallIcon(R.drawable.ic_launcher)
.setContentTitle("Get Other APW Co. Apps on Play!")
.setContentText("Want more? All our apps are free!");
int mNotificationId = 001;
NotificationManager mNotifyMgr =
(NotificationManager) getSystemmService(NOTIFICATION_SERVICE);
mNotifyMgr.notify(mNotificationId, builder.build());
郵政logcat的崩潰報告。在當前代碼中更多的上下文會很好。 –