मेरे पास पृष्ठभूमि में फ़ाइलों को डाउनलोड करने के लिए एक सतत अधिसूचना है। मैं कई बार एक साथ प्रगति पट्टी अधिसूचनाओं को अद्यतन करने में सफल रहा हूं जिन्हें रद्द भी किया जा सकता है। हनीकॉम के साथ हाल ही में कुछ एंड्रॉइड टैबलेट को छोड़कर यह सभी परीक्षण उपकरणों पर ठीक काम करता है।एंड्रॉइड हनीकॉम पर जारी अधिसूचना असंगत व्यवहार है
प्रभाव अब है कि मूल अधिसूचना संदेश लगातार फिर से चलाया जाता है, जिससे उपयोगकर्ता चल रहे अधिसूचनाओं की सूची लाने के लिए घड़ी पर क्लिक करने से रोकता है। ऐसे में, कोई प्रगति सलाखों को भी देखा नहीं जाता है। क्या कोई भी हनीकॉम पर प्रगति पट्टी अधिसूचनाओं को अनिवार्य रूप से बनाने में सफल रहा है?
एक तरफ, मुझे यह भी पता चलता है कि मेरी ब्लैक अधिसूचना पाठ अब अधिसूचना सूची की काली पृष्ठभूमि के साथ पठनीय नहीं है। क्या हनीकॉम उपकरणों के लिए सफेद पाठ सेट करने का कोई तरीका है?
नोट: यह और ऑप्टिमस पैड एल 06C एंड्रॉयड 3.0.1 चल Motorola Xoom
नीचे पर परीक्षण किया गया एक अधिसूचना निर्माण
// Create new notification for downloading
mNotification = new Notification(R.drawable.owl_icon, getNotificationText(R.string.notification_content_downloading), 0);
mNotification.flags |= (Notification.FLAG_NO_CLEAR | Notification.FLAG_ONGOING_EVENT);
// Create custom progress bar view
RemoteViews contentView = new RemoteViews(CourseSyncService.this.getPackageName(), R.layout.notification_downloading);
contentView.setTextViewText(R.id.notificationTitle, mCourseTitle);
contentView.setProgressBar(R.id.notificationProgressBar, 100, 0, false);
contentView.setTextViewText(R.id.notificationPercentage, "0%");
mNotification.contentView = contentView;
// Create pending intent for the notification
Intent notificationIntent = new Intent(CourseSyncService.this, CancelDownloadActivity.class);
notificationIntent.putExtra(CourseSyncService.KEY_USER_ID, mUserId);
notificationIntent.putExtra(CourseSyncService.KEY_COURSE_ID, mCourseId);
notificationIntent.putExtra(CourseSyncService.KEY_COURSE_TITLE, mCourseTitle);
PendingIntent contentIntent = PendingIntent.getActivity(CourseSyncService.this, mCourseId, notificationIntent, PendingIntent.FLAG_CANCEL_CURRENT);
mNotification.contentIntent = contentIntent;
// Launch notification
mNotificationManager.notify(mCourseId, mNotification);
यहाँ है और मैं कैसे है अधिसूचना अद्यतन करें:
// Update the progress bar of the notification view
mNotification.contentView.setProgressBar(R.id.notificationProgressBar, mItemCount, mProgressCount, false);
mNotification.contentView.setTextViewText(R.id.notificationPercentage, String.valueOf(mProgress) + "%");
mNotificationManager.notify(mCourseId, mNotification);
अधिसूचित (आईडी, अधिसूचना) में दस्तावेज़ बताते हैं कि एक ही आईडी पर अधिसूचना "अद्यतन जानकारी द्वारा प्रतिस्थापित की जाएगी।" लगता है कि हनीकॉम एक भयंकर रेडिसप्ले जोड़ता है जो पिछले संस्करणों पर नहीं हुआ था। – Rene
1500 से अधिक पर बधाई! मेरे वोट ने आपको किनारे पर धकेल दिया ... लेकिन अधिकतर इस समस्या से पूछने के लिए धन्यवाद, मुझे एक ही समस्या थी और यह इसे ठीक कर दिया। – JPM
वाहू! धन्यवाद! – Chase