2012. 3. 21. 02:57

ㅇpending intent 의 0 이라는 인자값을 updtae 로 고쳐준다.

}

Intent intent2 = new Intent(this, Alram.class);
// intent2.putExtra("title", _title);
intent2.setAction(SCHEDULED_PROFILE);
intent2.putExtra("SID", (long)actionDBId);


sender = PendingIntent.getBroadcast(this, check, intent2, PendingIntent.FLAG_UPDATE_CURRENT);

===================================================

받을때는 요로콤

String test;

public void onReceive(Context context, Intent intent) {
// Log.e("aaa","______________");
mNotiManager = (NotificationManager) context
.getSystemService(Context.NOTIFICATION_SERVICE);
Notification noti = new Notification(R.drawable.ic_launcher, "일정 알림",
System.currentTimeMillis());

Uri data = intent.getData();
test = intent.getStringExtra("value");

Posted by k1rha