android studio on click action remove notification compact

Ganz404 answered on March 3, 2023 Popularity 2/10 Helpfulness 8/10

Contents


More Related Answers

  • remove action bar android studio
  • remove notification observer swift
  • android studio remove notification bar
  • android studio remove action bar
  • hide actionbar android
  • android how do I slience a notification without disabling it

  • android studio on click action remove notification compact

    1

    When you called notify on the notification manager you gave it an id - that is the unique id you can use to access it later (this is from the notification manager:

    Java

    notificationManagerCompat.notify(id, nohtif.build()); // build

    To cancel, you would call:

    ​notificationManagerCompat.cancel(1); //dismiss

    if you are use BroadcastReceive

    Popularity 2/10 Helpfulness 8/10 Language java
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Mar 03 2023
    Ganz404
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.