android-developers
[Arriba] [Todas las Listas]

[android-developers] Cómo para poner mqtt payload a variable

To: Android Developers <android-developers@xxxxxxxxxxxxxxxx>
Subject: [android-developers] Cómo para poner mqtt payload a variable
From: MOHAMMED ashfaq <ashfaaaa1@xxxxxxxxx>
Date: Wed, 2 Aug 2017 12:53:40 -0700 (PDT)
Delivery-date: Wed, 02 Aug 2017 15:54:31 -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=RobKv1aCHwGrKhlEAaMDP89/+8F34OdBA/f+ZP3FJgk=; b=jI1Zos3nsVmiyW4OT+vD1/Fd2FaM8paiDUSjLjLLk7cf+1OoWw9Ts2sX0pLWLkxvSQ 25n9uiuV5Rv//616461bFBWcmKGrSwpYhFFrsc6K974e6KU9yOYP/4ZXFltfvPEntveL L0XFHVu3BcZjamaDwnkvU4c3mgBTPY5+lZAPLWvdqKS2ON7hPzxbBi6oRGrhov0zdCAZ UmWMmB1iwrYEHXN5zSIw1cp3a1JrhKsWUApaV+Snf7OsEvdsx4Gch6hJuoucfKuBzHQm Tt1ZY27I/XM0AxiR7/CRTrvKQ1QrjJBQQx6+OVFQxRjjWbziNusrQkPlOsiy4Pn2XZPr 8jsw==
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=RobKv1aCHwGrKhlEAaMDP89/+8F34OdBA/f+ZP3FJgk=; b=bcpXK5bkAn1yD0pF+wnBRjXbbXFgV8v9kqE2UvJZ1cKw6teh/hS2AnZcv/rfSIHQvi PV1K7H6yuttiEghzcD40QAC+bRX1MSUSwci3nRleALrlttQhDPLjXwXxR6j5ZZvhvGF9 jqdjMI3wBWzDpCHhUC4WkmcidR5xDo9chOQ6hSVeo8sXITUcr4TwWqkWvv3ofSCgnsyL v2I3gHYZ9luhrBvme0BtbOE0CCKcK6qepXJlwE8zsypRQDq661jqlAGkNnyrmnTx4iQ7 B1JMncgq91bc7/bt/XdzFmzo6ViNJkyVljUYTFCYVRzlQqDpfcvP+UI8PtseTyWR/CYs xS/Q==
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
hola *im Nuevo a *android el desarrollo podría alguien complace ayudarme con abajo 
código. *i Quiere hacer si declaración del *mqtt *payload . Cómo puede *i marca 
*playload = conectó entonces espectáculo es *Textview

```
público *void *messageArrived(tema de Cadena, *MqttMessage mensaje) echa 
Excepción
#unknown{^*subText.*setText(Cadena nueva(mensaje.*getPayload()));
// *Vibrator.*vibrate(500);
}
```

-- 
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/1*ffedcf4-ser81-4*ed5-*acbd-5067172*fb79*b%40*googlegroups.*com.
Para más opciones, visita *https://grupos.*google.*com/*d/*optout.
hello im new to android development could someone please help me with below 
code. i want to make if statement from the mqtt payload . how can i make 
playload = connected then show it is Textview

```
public void messageArrived(String topic, MqttMessage message) throws 
Exception {
subText.setText(new String(message.getPayload()));
// Vibrator.vibrate(500);
}
```

-- 
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/1ffedcf4-be81-4ed5-acbd-5067172fb79b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<Anterior por Tema] Tema Actual [Siguiente por Tema>