답변은 쉽지만 여전히 찾지 못했습니다. 필요한 것은 그림에서 보는 것처럼 (사용자가 선호하는 경우) 클릭 할 수 없거나 확장 할 수 없거나 호출 할 수있는 것으로 알리는 알림을 설정하는 것입니다. 내가 어떻게 해? 나는 대답을 할 것이다 false로 진행하는 부울 설정 생각하지만 착각이었다 ..android non-clickable notification
답변
미안하지만 당신은 그렇게 할 수 없습니다. Notification
은 모두 확장 가능보기 여야합니다 (비어있는 경우에도 마찬가지). 이렇게하면 사용자는 알림을 취소 할 수 있습니다.
표시되는 아이콘 (3G, 셀 타워 ... 등)은 OS 및 OS에만이 알림 유형을 설정할 수 있다고 생각합니다.
아 ... 정말입니까? 사실 나는 사용자가 사용할 수있는 앱 내부에서 알림을 취소 할 수있는 방법이 있습니다. – Droidman
그리고 그 방법을 사용자에게 제공하지 않는다면 ?? 시스템은 사용자가 앱을 취소 할 수 없으면 항상 취소 할 수있는 방법을 제공합니다. – iTurki
당신의 생각을 잡지 못했습니다 .. 사실 나는 클릭 가능한 알림을 만들 수 있으며 취소 할 수있는 방법도 제공하지 않습니다. 물론 그것은 진절머리 나는 앱 일 것이다. API가 클릭 할 수없는 알림을 생성 할 수있는 가능성을 제공하지 않는 이유는 없습니다. – Droidman
전경 서비스로 할 수 있습니다.
final NotificationCompat.Builder noti = new NotificationCompat.Builder(context);
noti.setTicker("");
noti.setContentTitle("");
noti.setContentText("");
noti.setWhen(System.currentTimeMillis());
noti.setOngoing(true);
service.startForeground(11, noti.build());
내가 사용하는 컨텍스트는 서비스 자체입니다. "11"은 응용 프로그램에서 고유해야하는 알림 ID입니다 (제 생각에는). Notification.Builder 클래스는 API 레벨 11이지만 지원 라이브러리의 API는 api 4에서 작동합니다. (NotificationCompat.Builder)
- 1. android multiple notification
- 2. android media player notification
- 3. android list contents notification
- 4. Android Notification PendingIntent의 명확한 의미
- 5. Android - EditText on status notification
- 6. Android-Notification : 티커 텍스트를 더 오랫동안 머물게하십시오.
- 7. Persistant notification
- 8. Paypal Payment Notification
- 9. wcf connection closed notification
- 10. performSelectorOnMainThread to Notification
- 11. iAd notification * const__strong 'to
- 12. (Push Notification) 안드로이드
- 13. Soundpool onloadcomplete notification
- 14. PHP Apple Enhanced Notification
- 15. ios local notification didreceivelocalnotification
- 16. Gps notification iphone sdk
- 17. on complete notification 다운로드
- 18. threads reagarging notification
- 19. WCF를 통한 WS-Notification 구현
- 20. Ticker TextView in Notification 레이아웃
- 21. Silverlight Notification API in browser
- 22. APPLE IOS Notification with .NET
- 23. Apple Push Notification, java-apns의 PKCS12
- 24. Apple Push Notification 서비스 통계 (apns)
- 25. 푸시 알림 (Push Notification) 위임자가 호출되지 않음
- 26. Apple Push Notification 인증서의 중요한 변경 사항
- 27. PhoneGap Build & NativeControls & Local Notification plugin
- 28. CORBA Notification Service를 적용하는 방법은 무엇입니까?
- 29. 메트로 외부 Windows Push Notification Services 사용
- 30. django-notification & django-mailer ... 어떻게 함께 작동합니까?
그렇게 할 수 있는지는 잘 모르겠지만 의심 스럽습니다. – iTurki
시스템 앱에서만 이러한 종류의 알림을 사용할 수 있다고 생각하십니까? .. 이상하게 여겨야합니다 – Droidman