android-developers
[Arriba] [Todas las Listas]

[android-developers] Cómo para cancelar las alarmas ponen utilizar Alar

To: Android Developers <android-developers@xxxxxxxxxxxxxxxx>
Subject: [android-developers] Cómo para cancelar las alarmas ponen utilizar AlarmClock.La ACCIÓN_PONE_ALARMA intent?
From: Hammad Nasir <hammadnhammad@xxxxxxxxx>
Date: Mon, 28 Aug 2017 12:31:56 -0700 (PDT)
Delivery-date: Mon, 28 Aug 2017 15:32:50 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=Y/9OXfx9RqEAW7hyHBqdmIgImJ7xySwabPKk796hngs=; b=eWx5u0K9A2gyR8hSy8PYvWkRsirQr9N6Gbza9Men9QwwxdUsdAumsqXq1t8DHHMLTv Xqrg0PmaSsKpZDbBYliIJHE2J7t8WckSTncIgoVo6Kz+rMIkOxYas8othGUZ+UmROamq XcT3y5H2TuQwezHZQzq7+duUuQ7BhGi+U9P+g+YnrExrjlAih/i4y4p4so/7dEIN6E0S 8SfUdb+iUMLTItMqiirhaeB0fo1Db1lCdXFr4csnTiLuo2Hd2FoviFZ3TqTQGEa3w6Gk HRLlhwhQK+1d3VVXuyQdDopsYHibN5DjPSP40djaX+gRJXOc8QSVwIzkt2uiNCVU2sYc OE+w==
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=Y/9OXfx9RqEAW7hyHBqdmIgImJ7xySwabPKk796hngs=; b=ccSmBpEm/oHcdADh8A3REk+TJUhlGyVYQXQZ7mUYSPpL2a2+NYFWVcKrglPFsMXUER zEHDBKJgQ9GK2rXryZUyQy+vE/O0wVsoDXyUuVu3zXA1N5Dp38iUPg/1+PMCOMdzc5O6 mNjih75vAq8bdTZ2Rua7DGpJvxw6RWOCCwN+1m07ViMU/nH5mk9WsNHKya4fzFWw4UMj rokb4GeL/alkGofmCLLpxjqobrI0FZFgNuiHdKPVtxHyebh1bxa2/Dk+CiTgcSqZn8ms IF/Wfe/EOCTjuyzajYNBOGh9z3aZZlSv2MQ/+ksit+7giLOvntYaf7YL4hJ3AKitWEvh THrw==
Envelope-to: traductor@xxxxxxxxxxx
List-archive: <https://groups.google.com/group/android-developer>
List-help: <https://groups.google.com/support/>, <mailto:android-developers+help@googlegroups.com>
List-id: <android-developers.googlegroups.com>
List-post: <https://groups.google.com/group/android-developers/post>, <mailto:android-developers@googlegroups.com>
List-subscribe: <https://groups.google.com/group/android-developers/subscribe>, <mailto:android-developers+subscribe@googlegroups.com>
List-unsubscribe: <mailto:googlegroups-manage+364598216046+unsubscribe@googlegroups.com>, <https://groups.google.com/group/android-developers/subscribe>
Mailing-list: list android-developers@xxxxxxxxxxxxxxxx; contact android-developers+owners@xxxxxxxxxxxxxxxx
Reply-to: android-developers@xxxxxxxxxxxxxxxx
Sender: android-developers@xxxxxxxxxxxxxxxx
Estoy utilizando *AlarmClock.La ACCIÓN_PONE_ALARMA *intent cuando definido aquí 
<*https://*developer.*android.*com/Componentes/de guía/*intents-común.*html#*CreateAlarm>Para 
poner alarmas #por mi *android *app.

Esto es mi código:

público *void *createAlarm(mensaje de Cadena, *int hora, *int minutos)
    #unknown{^*Intent *intent = nuevo *Intent(*AlarmClock.La ACCIÓN_PONE_ALARMA)
            .*putExtra(*AlarmClock.MENSAJEEXTRA, mensaje)
            .*putExtra(*AlarmClock.HORAEXTRA, hora)
            .*putExtra(*AlarmClock.MINUTOSEXTRAS, minutos);
    si (*intent.*resolveActivity(*getPackageManager()) != *null)
        #unknown{^*startActivity(*intent);
    }
}


Es allí cualquier manera de cancelar estos alarma *programmatically cuándo el usuario 
quiere #por mi *app?

Complacer dejado me sabe.

*Thanks!

-- 
Recibiste este mensaje porque eres *subscribed al *Google Grupos "*Android *Developers" grupo.
A *unsubscribe de este grupo y la parón que recibe *emails de él, enviar un *email a *android-*developers+unsubscribe@xxxxxxxxxxxxxxxx.
A correo a este grupo, envía *email a *android-developers@xxxxxxxxxxxxxxxx.
Visita este grupo en *https://grupos.*google.*com/Grupo/*android-*developers.
Para ver esta discusión en la visita de web *https://grupos.*google.*com/*d/*msgid/*android-*developers/01#uno13999-1*ac7-4*da1-892*b-67*e2*b872*ca95%40*googlegroups.*com.
Para más opciones, visita *https://grupos.*google.*com/*d/*optout.
I'm using AlarmClock.ACTION_SET_ALARM intent as defined here 
<https://developer.android.com/guide/components/intents-common.html#CreateAlarm>for 
setting alarms through my android app.

This is my code:

public void createAlarm(String message, int hour, int minutes) {
    Intent intent = new Intent(AlarmClock.ACTION_SET_ALARM)
            .putExtra(AlarmClock.EXTRA_MESSAGE, message)
            .putExtra(AlarmClock.EXTRA_HOUR, hour)
            .putExtra(AlarmClock.EXTRA_MINUTES, minutes);
    if (intent.resolveActivity(getPackageManager()) != null) {
        startActivity(intent);
    }
}


Is there any way of cancelling these alarms programmatically when user 
wants through my app?

Please let me know.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to android-developers@xxxxxxxxxxxxxxxx.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/01a13999-1ac7-4da1-892b-67e2b872ca95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<Anterior por Tema] Tema Actual [Siguiente por Tema>
  • [android-developers] Cómo para cancelar las alarmas ponen utilizar AlarmClock.La ACCIÓN_PONE_ALARMA intent?, Hammad Nasir <=