हमारा सुझाव है कि 27 मार्च, 2025 से AOSP को बनाने और उसमें योगदान देने के लिए, aosp-main
के बजाय android-latest-release
का इस्तेमाल करें. ज़्यादा जानकारी के लिए, AOSP में हुए बदलाव लेख पढ़ें.
सूचनाओं का इतिहास
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
सूचनाओं का इतिहास, डिवाइस की एक स्क्रीन होती है. यहां उपयोगकर्ता, स्नूज़ की गई सूचनाएं, हाल ही में खारिज की गई कुछ सूचनाएं, और पिछले दिन की सूचनाओं का इतिहास देख सकते हैं. यह सुविधा, OEM के लिए लागू करना ज़रूरी नहीं है.
इससे SoC या कैरियर पर कोई असर नहीं पड़ेगा.
सूचनाओं के इतिहास की सुविधा का इस्तेमाल इन कामों के लिए किया जा सकता है:
- गलती से सूचना को खारिज कर दिया गया हो: आपने गलती से कोई सूचना खारिज कर दी हो और आपको यह जानना हो कि वह सूचना क्या थी.
- स्नूज़ की गई सूचनाएं: आपने किसी सूचना को स्नूज़ किया है, लेकिन आपको स्नूज़ की गई अवधि खत्म होने से पहले उसे देखना है.
- समस्या हल करना: आपको लगता है कि आपको कोई सूचना नहीं मिली. सूचनाओं के इतिहास की जांच करके देखें कि कोई सूचना मिली थी या नहीं और क्या उससे सूचना मिली थी. अगर आपको वह सूचना नहीं मिलती है, तो देखें कि किसी सूचना को ब्लॉक तो नहीं किया गया है. सूचनाओं के इतिहास में जाकर, सूचना सेटिंग बदली जा सकती हैं.
- सूचनाओं को मैनेज करना: अगर आपको सूचनाओं के बीच आने वाले व्यवधान को कम करना है, तो सूचनाओं के इतिहास का इस्तेमाल करें. इससे आपको हर दिन सूचनाओं के लोड की सटीक जानकारी मिलती है. इससे, सूचनाएं पाने की सुविधा को ब्लॉक करने, सूचनाएं पाने की सेटिंग में बदलाव करने वगैरह के बारे में आसानी से समझा जा सकता है.
सूचनाओं के इतिहास के इन कॉम्पोनेंट को लागू करने के रेफ़रंस उपलब्ध हैं:
- सेटिंग:
packages/apps/Settings/src/com/android/settings/notification/history
- सिस्टम सर्वर:
com.android.server.notification.NotificationHistory.*.java
सूचनाओं के इतिहास की सुविधा को लागू करने के लिए, ये मुख्य चरण अपनाएं:
- लॉग में सूचना वाले इवेंट लिखें.
- लॉग में एंट्री पॉइंट जोड़ें. साथ ही, उसे चालू और बंद करने के लिए सेटिंग जोड़ें.
- सूचनाओं के इतिहास की स्क्रीन लागू करें.
उपयोगकर्ता, सूचना इतिहास की सेटिंग को बंद कर सकते हैं. बंद होने पर, इतिहास के सभी आइटम मिट जाते हैं और लॉग में कोई आइटम नहीं लिखा जाता.
NotificationHistoryDatabase
क्लास में HISTORY_RETENTION_DAYS
कॉन्स्टेंट का इस्तेमाल करके, यह तय किया जा सकता है कि सूचनाओं का इतिहास कितने दिनों तक दिखे. आपके पास यह भी तय करने का विकल्प होता है कि सूचना के इतिहास वाली स्क्रीन पर कौनसे सेक्शन दिखें और डेटा कैसे दिखाया जाए.
सूचनाओं के इतिहास को डिफ़ॉल्ट रूप से 24 घंटे तक सेव रखा जाता है.
ये यूनिट टेस्ट, कोड के हर कॉम्पोनेंट के लिए उपलब्ध होते हैं:
- सिस्टम सर्वर की यूनिट टेस्ट:
FrameworksUiServicesTests
- सेटिंग की यूनिट टेस्ट:
make -j64 RunSettingsRoboTests
ROBOTEST_FILTER="com.android.settings.notification"
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# Notification history is a device screen where users can see snoozed\nnotifications, a handful of recently dismissed notifications, and a history of\nthe last day of notifications. It is an optional feature for OEMs to implement.\nThere's no impact on SoCs or carriers.\n\nNotification history is meant to address these use cases:\n\n- **Accidental dismissal**: You accidentally dismissed a notification and want to get a quick look at what it was.\n- **Snoozed notifications**: You snoozed a notification but want to see it before the snooze period is over.\n- **Troubleshooting**: You think you missed a notification. You check the notification history to see whether there was a notification and whether it buzzed. If you don't find it, you check whether a notification was blocked. You can change notification settings in notification history.\n- **Notification management**: You want to change how interruptive notifications are, so you use notification history because it offers a realistic slice of daily notification load, which makes it easy to understand the scope of your changes to alerting, blocking. etc.\n\nReference implementations of these components of Notification History are\navailable:\n\n- **Settings** : `packages/apps/Settings/src/com/android/settings/notification/history`\n- **System server** : `com.android.server.notification.NotificationHistory.*.java`\n\nThese are the major steps to implement Notification History:\n\n- Write notification events to the log.\n- Add entry points to the log and the setting to turn it on and off.\n- Implement the Notification History screen.\n\nUsers can turn Notification History off. When it's off, all history items are\ndeleted and no items are written to the log.\n\nYou can set the number of days notifications appear in the Notification\nHistory using the `HISTORY_RETENTION_DAYS` constant in the\n`NotificationHistoryDatabase` class. You can also modify which\nsections appear in the Notification History screen and how the data is\npresented.\n\nThe default notification history retention period is 24 hours.\n\nThese unit tests are provided for each component of the code:\n\n- **System server unit tests** : `FrameworksUiServicesTests`\n- **Settings unit tests** : `make -j64 RunSettingsRoboTests\n ROBOTEST_FILTER=\"com.android.settings.notification\"`"]]