मैं वर्तमान में एक एप पर काम कर रहा हूं जो एक पहनने वाले डिवाइस पर दिखाया गया है। अधिसूचना में अधिसूचना कार्ड (.setContentAction (0)) पर एक क्रिया शामिल है।एंड्रॉइड पहनने के इरादे से कार्रवाई की पुष्टि लंबित
सब कुछ ठीक काम कर रहा सिवाय इसके कि यह हर किसी के कार्ड पर क्लिक करता है एक पुष्टिकरण संदेश से पता चलता है।
के बाद से कार्ड के रूप में जल्द ही कोई इस पर क्लिक करता के रूप में अद्यतन किया जाता है, यह आवश्यक नहीं है एक पुष्टिकरण को दिखाने के लिए है।
अगर पुष्टि को रोकने का कोई तरीका है तो मैं पहले से ही आधिकारिक दस्तावेज (https://developer.android.com/training/wearables/ui/confirm.html#show-confirmation) की जांच करता हूं, दुर्भाग्य से मुझे अब तक कोई समाधान नहीं मिला है।
संपादित 09.07.2015
NotificationCompat.Builder builder = new NotificationCompat.Builder(context)
.setGroup("GROUP")
.setGroupSummary(false)
.setAutoCancel(false)
.setPriority(Notification.PRIORITY_HIGH)
.setSmallIcon(R.drawable.ic_timer_white_48dp);
ArrayList<NotificationCompat.Action> actions = new ArrayList<>();
NotificationCompat.Action control = new NotificationCompat.Action.Builder(icon, null, pendingTimeIntent).build();
actions.add(control);
builder.extend(new NotificationCompat.WearableExtender().addActions(actions).setContentAction(0).setBackground(background));
NotificationManagerCompat notificationManager =
NotificationManagerCompat.from(context);
notificationManager.notify(Constants.NOTIFICATION_ID_WEAR, builder.build());
क्या आपको इसके लिए कोई समाधान मिला? – Debugger
नहीं, यही कारण है कि मैंने एक उछाल शुरू किया। – Lukas
क्या आपके पास एक स्टैंडअलोन पहनने योग्य एप्लिकेशन है? मैंने हाल ही में एक स्मार्टवॉच ऐप पर काम किया, और मुझे यह समस्या नहीं थी। क्या आप कुछ कोड पोस्ट कर सकते हैं? – Blackbelt