gcm없이 그냥 NotificationManager로 동기식으로 버튼을 누르면 푸시알림이 오게끔 코딩했는데,
public void notification(View v){
NotificationManager nm = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);
Notification notification = new Notification(R.drawable.ic_launcher, "Notification", System.currentTimeMillis());
notification.flags = Notification.FLAG_AUTO_CANCEL;
notification.defaults = Notification.DEFAULT_SOUND | Notification.DEFAULT_VIBRATE | Notification.DEFAULT_LIGHTS;;
Intent i = new Intent(this, MainActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, i, PendingIntent.FLAG_UPDATE_CURRENT);
notification.setLatestEventInfo(this, "title", "summary", pendingIntent);
nm.notify(1, notification);
}
이렇게요.
여기서 온 푸시알림을 클릭하면, 스피너가 뜨게 하고싶은데, 어떻게 해야할까요?;
intent로 액티비티를 넘길 순 있는데;; 감이 안잡히네요. 대략적인 방법좀 알려주시면 감사하겠습니다 (_ _)