通知メッセージにデータベースの内容(2語のみ)を表示しようとしていますが、タイトルだけが表示されるのはなぜですか?2番目の問題:AlarmManagerを使用して1分ごとにintentserviceクラス(このコードを含むクラス)をトリガーしましたが、data == nullの場合、発生してはならない状態で通知されます
ShowTimeDB RetrieverDB =new ShowTimeDB(this);
RetrieverDB.open();
String data = RetrieverDB.getShowNotify();
RetrieverDB.close();
if (data!=null){
nm=(NotificationManager)getSystemService(NOTIFICATION_SERVICE);
Intent intent=new Intent(this,TodayShow.class);
PendingIntent pi= PendingIntent.getActivity(this, 0, intent, 0);
CharSequence x=(CharSequence) data;
Notification n=new Notification(R.drawable.ic_launcher,"YOU HAVE SHOw" ,System.currentTimeMillis());
n.setLatestEventInfo(this, "ShowTime", x, pi);
n.defaults=Notification.DEFAULT_ALL;
nm.notify(uniqueID,n);