android-developers
[Arriba] [Todas las Listas]

Re: [android-developers] Cómo para eliminar sms charlas de Messaging In

To: android-developers@xxxxxxxxxxxxxxxx
Subject: Re: [android-developers] Cómo para eliminar sms charlas de Messaging Inbox programmatically?
From: Mark Murphy <mmurphy@xxxxxxxxxxxxxxx>
Date: Mon, 31 Oct 2011 08:38:39 -0400
Delivery-date: Mon, 31 Oct 2011 08:39:13 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:in-reply-to:references:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=Zw/Tpeg2CXE5e9RK7wHaEJAxrPOTZ+x8vPsEPJOmqK4=; b=JV/2dmPnyZfadYuMGcH0Gbv8k9YYCjHR5BvKHhCDtaJ9x8Gr9ukhMe4hjoJWmBsnYB K0C3pRkdIh+LFJO8i+oE9eo6l+VZo3Ok+cNTLmu+YHRIfFCVdVgn70j6mRm+CbnhY9So CS6rTc1scNMR+BKh8o/BglFOdJYEjU/md3JYs=
Envelope-to: traductor@xxxxxxxxxxx
In-reply-to: <CANm+VVkNi63vdf5=GM1ZNrYhv_4gikC_aZMSmUDqP-7+KKUNHA@mail.gmail.com>
List-archive: <http://groups.google.com/group/android-developers?hl=en_US>
List-help: <http://groups.google.com/support/?hl=en_US>, <mailto:android-developers+help@googlegroups.com>
List-id: <android-developers.googlegroups.com>
List-post: <http://groups.google.com/group/android-developers/post?hl=en_US>, <mailto:android-developers@googlegroups.com>
List-subscribe: <http://groups.google.com/group/android-developers/subscribe?hl=en_US>, <mailto:android-developers+subscribe@googlegroups.com>
List-unsubscribe: <http://groups.google.com/group/android-developers/subscribe?hl=en_US>, <mailto:android-developers+unsubscribe@googlegroups.com>
Mailing-list: list android-developers@xxxxxxxxxxxxxxxx; contact android-developers+owners@xxxxxxxxxxxxxxxx
References: <CANm+VVkNi63vdf5=GM1ZNrYhv_4gikC_aZMSmUDqP-7+KKUNHA@mail.gmail.com>
Reply-to: android-developers@xxxxxxxxxxxxxxxx
Sender: android-developers@xxxxxxxxxxxxxxxx
En *Mon, *Oct 31, 2011 en 8:25 AM, *Shruthi *Varma
<shruthi.tlisoft@xxxxxxxxx> escribió:
> Utilizando Emisión *Receiver, soy capaz de recibir *sms en mi *app, pero
> aquellos *sms las charlas son visibles en el *Messaging *Inbox también.

Aquello es porque no estás llamando *abortBroadcast().

> Quiero escribir un código donde los mensajes de un número particular son
> recibidos de mi *app y eliminado del *Messaging *Inbox
> simultáneamente.

No, necesitas llamar *abortBroadcast(), tan más bajo-prioridad *receivers no
recibe la emisión.

El hecho que tercer-clientes de SMS del partido podrían tener una prioridad más alta
que el vuestro sugerirían que quizás utilizando SMS como vehículo para la charla
no es un movimiento sensato.

-- 
Mark *Murphy (un *Commons Guy)
*http://*commonsware.*com | *http://*github.*com/*commonsguy
*http://*commonsware.*com/*blog | *http://*twitter.*com/*commonsguy

_*Android Programación *Tutorials_ Versión 4.0 Disponible!

-- 
Recibiste este mensaje porque eres *subscribed al *Google
Grupos "*Android *Developers" grupo.
A correo a este grupo, envía *email a *android-developers@xxxxxxxxxxxxxxxx
A *unsubscribe de este grupo, envía *email a *android-*developers+unsubscribe@xxxxxxxxxxxxxxxx

Puesto que más opciones, visita este grupo en
*http://grupos.*google.*com/Grupo/*android-*developers?*hl=*en

On Mon, Oct 31, 2011 at 8:25 AM, Shruthi Varma
<shruthi.tlisoft@xxxxxxxxx> wrote:
> Using Broadcast Receiver, I am able to receive sms in my app, but
> those sms chats are visible in the Messaging Inbox too.

That is because you are not calling abortBroadcast().

> I want to write a code where the messages from a particular number are
> received from my app and deleted from the Messaging Inbox
> simultaneously.

No, you need to call abortBroadcast(), so lower-priority receivers do
not receive the broadcast.

The fact that third-party SMS clients might have a higher priority
than yours would suggest that perhaps using SMS as a vehicle for chat
is not a wise move.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 4.0 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
android-developers+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

<Anterior por Tema] Tema Actual [Siguiente por Tema>