안드로이드 상단 알림_Notification
안드로이드 개발시 상단에 밑으로 쭉 내리면 나오는 영역에 알림을 직접 나타나게 할 수 있습니다. NotificationManager를 이용하면 됩니다. 소스는 아래에 첨부하였습니다. 참고하시기 바랍니다. NotificationManager nm = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE); NotificationCompat.Builder nc = new NotificationCompat.Builder(getApplicationContext()); Intent i = new Intent(this, 선택하면 이동할 페이지); i.setFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS|Inten..
IT 생활
2017. 2. 27. 17:29