Return-path: <rogelio@ssf.mx>
Envelope-to: miguel@ssf.com.mx
Delivery-date: Fri, 04 Dec 2015 15:09:50 -0600
Received: from mail-io0-f179.google.com ([209.85.223.179]:36786)
	by vishnu.hosting-mexico.net with esmtps (TLSv1.2:AES128-GCM-SHA256:128)
	(Exim 4.86)
	(envelope-from <rogelio@ssf.mx>)
	id 1a4xbw-002we6-Ia
	for miguel@ssf.com.mx; Fri, 04 Dec 2015 15:09:50 -0600
Received: by iofh3 with SMTP id h3so129470080iof.3
        for <miguel@ssf.com.mx>; Fri, 04 Dec 2015 13:09:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=ssf-mx.20150623.gappssmtp.com; s=20150623;
        h=mime-version:from:date:message-id:subject:to:content-type;
        bh=NBbvh65ns9eCmSYpvR3iv8jYLlj4TG3mc2fUtEVdbWM=;
        b=ptAx3lKNni3V4bzBvO/KhPjEt7+SSESkZYvwKENJ3EtVZfnLU6jfgLW+aje6Uhkgsv
         8nX6oPnqIvfe8G3Go0sYLP/JhTvkrcVoVC5Gm/dms2j9LseISfHqGPrBLw+qOtKTrcZ4
         dp9WqgSZhCsHND+SCUm7NQT2rxE+mC0cWyeWpiZxwrvygm7DywTcf9VgJrb8vdT42gUH
         Xke8WGKU20L6y3avXrEx/BCIU4DGbuO7+dF7/HfChpT5wk5oMav075vH8xN7AHfyRJ99
         scxgBtaxVcBwSirwL7KgynPSDjHozNrKGjSpeRrnbqGm4g1vOA/G793JiJZLCQtTiyWs
         hTfw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:from:date:message-id:subject:to
         :content-type;
        bh=NBbvh65ns9eCmSYpvR3iv8jYLlj4TG3mc2fUtEVdbWM=;
        b=Co43EjBo0dG+7ZfTs9BN636Y+o2UNKcgCH1XcZU9ewdzQL1As+FOBPrGHtX8CQvIr+
         7GoeCChkugazItCVL1oLhAqFeHOAcYT8NGGybl75hE34h/UrbA9nbXXhPe2aMFvyp9Zh
         mwTV3i+3mCBA9AjwV1uZGRfbZBWkPwHWXM+VH/SPJ2t2C0C4HcAx+8PS/63guyY2D3LD
         N8lMEyr9foNv8cYYFMKyWmD7gVGrd5KU++U6YLKkILc3LSPgG1XYXCfxHc/5on5iq199
         6zMmMK5IRB6KL9t57P1a4Leog2qOr9DFzomhcDeikxUU3Jhsa9atCogNhu9jXSDIEOdX
         GI8w==
X-Gm-Message-State: ALoCoQmM5Q7W84KXokZzU2VtuBWtfsjQ9aLByLWGvisehjitk9aHJJjNw8G+hWiUxZt5q/7hU9s/
X-Received: by 10.107.28.13 with SMTP id c13mr16535998ioc.149.1449263348774;
 Fri, 04 Dec 2015 13:09:08 -0800 (PST)
MIME-Version: 1.0
From: Rogelio Delgado <rogelio@ssf.mx>
Date: Fri, 04 Dec 2015 21:08:59 +0000
Message-ID: <CA+T9KLxNnRS4TsHBeVTqOz1V4y2KHYuEo7yxBAeLskEw6sV5-Q@mail.gmail.com>
Subject: =?UTF-8?Q?C=C3=B3digo_de_uso_de_AlertDialog?=
To: "miguel@ssf.com.mx" <miguel@ssf.com.mx>
Content-Type: multipart/alternative; boundary=001a1140a73a170f96052618ebd6
X-Spam-Status: No, score=1.9
X-Spam-Score: 19
X-Spam-Bar: +
X-Ham-Report: Spam detection software, running on the system "vishnu.hosting-mexico.net",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 root\@localhost for details.
 
 Content preview:  @Override protected void onPostExecute(ObservationsList observationList)
    { AlertDialog.Builder b = new AlertDialog.Builder(ctx); b.setTitle("Causa
    de cancelación"); final ArrayAdapter<TypifiedOrderObservation> adapter =
    new ArrayAdapter<TypifiedOrderObservation>(ctx, R.layout.typified_observation_row_layout,
    observationList.getObservationsList()) { @Override public View getView(int
    position, View convertView, ViewGroup parent) { TextView text = null; if
   (convertView == null) { LayoutInflater inflater = (LayoutInflater) ctx.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    convertView = inflater.inflate(R.layout.typified_observation_row_layout,
   null); } text = (TextView) convertView.findViewById(R.id.typified_observation_text);
    text.setTag(text); text.setText(getItem(position).toString()); return convertView;
    } }; b.setAdapter(adapter, new DialogInterface.OnClickListener() { @Override
    public void onClick(DialogInterface dialog, int which) { dialog.dismiss();
    Log.d("CallCenterAdapter", "El id de lo que apretaron: " + which); new UpdateOrderStatus().execute(selectedOrder,
    Order.ORDER_STATUS.CANCELED, adapter.getItem(which).toString()); } }); b.show();
    } [...] 
 
 Content analysis details:   (1.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  0.0 URIBL_BLOCKED          ADMINISTRATOR NOTICE: The query to URIBL was blocked.
                             See
                             http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
                              for more information.
                             [URIs: gappssmtp.com]
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
                             [209.85.223.179 listed in wl.mailspike.net]
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at http://www.dnswl.org/, low
                             trust
                             [209.85.223.179 listed in list.dnswl.org]
  0.0 HTML_MESSAGE           BODY: HTML included in message
  0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily valid
 -0.1 DKIM_VALID             Message has at least one valid DKIM or DK signature
  2.6 MANY_SPAN_IN_TEXT      Many <SPAN> tags embedded within text
X-Spam-Flag: NO

--001a1140a73a170f96052618ebd6
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

@Override
protected void onPostExecute(ObservationsList observationList) {
    AlertDialog.Builder b =3D new AlertDialog.Builder(ctx);
    b.setTitle("Causa de cancelaci=C3=B3n");
    final ArrayAdapter<TypifiedOrderObservation> adapter =3D new
ArrayAdapter<TypifiedOrderObservation>(ctx,
R.layout.typified_observation_row_layout,
observationList.getObservationsList()) {
        @Override
        public View getView(int position, View convertView, ViewGroup paren=
t) {
            TextView text =3D null;
            if (convertView =3D=3D null) {
                LayoutInflater inflater =3D (LayoutInflater)
ctx.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
                convertView =3D
inflater.inflate(R.layout.typified_observation_row_layout, null);
            }
            text =3D (TextView)
convertView.findViewById(R.id.typified_observation_text);
            text.setTag(text);
            text.setText(getItem(position).toString());
            return convertView;
        }
    };
    b.setAdapter(adapter, new DialogInterface.OnClickListener() {
        @Override
        public void onClick(DialogInterface dialog, int which) {
            dialog.dismiss();
            Log.d("CallCenterAdapter", "El id de lo que apretaron: " + whic=
h);
            new UpdateOrderStatus().execute(selectedOrder,
Order.ORDER_STATUS.CANCELED, adapter.getItem(which).toString());
        }
    });
    b.show();
}

--=20
____________________________________
L.I Rogelio Delgado Gonz=C3=A1lez
* Smart Software Factory*
:: Innovando en servicios tecnol=C3=B3gicos ::

--001a1140a73a170f96052618ebd6
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><pre style=3D"background-color:#2b2b2b;color:#a9b7c6;font-=
family:&#39;Source Code Pro&#39;;font-size:9.0pt"><span style=3D"color:#bbb=
529">@Override<br></span><span style=3D"color:#cc7832;font-weight:bold">pro=
tected void </span><span style=3D"color:#ffc66d">onPostExecute</span>(Obser=
vationsList observationList) {<br>    AlertDialog.Builder b =3D <span style=
=3D"color:#cc7832;font-weight:bold">new </span>AlertDialog.Builder(<span st=
yle=3D"color:#9876aa">ctx</span>)<span style=3D"color:#cc7832">;<br></span>=
<span style=3D"color:#cc7832">    </span>b.setTitle(<span style=3D"color:#6=
a8759">&quot;Causa de cancelaci=C3=B3n&quot;</span>)<span style=3D"color:#c=
c7832">;<br></span><span style=3D"color:#cc7832">    </span><span style=3D"=
color:#cc7832;font-weight:bold">final </span>ArrayAdapter&lt;TypifiedOrderO=
bservation&gt; adapter =3D <span style=3D"color:#cc7832;font-weight:bold">n=
ew </span>ArrayAdapter&lt;TypifiedOrderObservation&gt;(<span style=3D"color=
:#9876aa">ctx</span><span style=3D"color:#cc7832">, </span>R.layout.<span s=
tyle=3D"color:#9876aa;font-style:italic">typified_observation_row_layout</s=
pan><span style=3D"color:#cc7832">, </span>observationList.getObservationsL=
ist()) {<br>        <span style=3D"color:#bbb529">@Override<br></span><span=
 style=3D"color:#bbb529">        </span><span style=3D"color:#cc7832;font-w=
eight:bold">public </span>View <span style=3D"color:#ffc66d">getView</span>=
(<span style=3D"color:#cc7832;font-weight:bold">int </span>position<span st=
yle=3D"color:#cc7832">, </span>View convertView<span style=3D"color:#cc7832=
">, </span>ViewGroup parent) {<br>            TextView text =3D <span style=
=3D"color:#cc7832;font-weight:bold">null</span><span style=3D"color:#cc7832=
">;<br></span><span style=3D"color:#cc7832">            </span><span style=
=3D"color:#cc7832;font-weight:bold">if </span>(convertView =3D=3D <span sty=
le=3D"color:#cc7832;font-weight:bold">null</span>) {<br>                Lay=
outInflater inflater =3D (LayoutInflater) <span style=3D"color:#9876aa">ctx=
</span>.getSystemService(Context.<span style=3D"color:#9876aa;font-style:it=
alic">LAYOUT_INFLATER_SERVICE</span>)<span style=3D"color:#cc7832">;<br></s=
pan><span style=3D"color:#cc7832">                </span>convertView =3D in=
flater.inflate(R.layout.<span style=3D"color:#9876aa;font-style:italic">typ=
ified_observation_row_layout</span><span style=3D"color:#cc7832">, </span><=
span style=3D"color:#cc7832;font-weight:bold">null</span>)<span style=3D"co=
lor:#cc7832">;<br></span><span style=3D"color:#cc7832">            </span>}=
<br>            text =3D (TextView) convertView.findViewById(R.id.<span sty=
le=3D"color:#9876aa;font-style:italic">typified_observation_text</span>)<sp=
an style=3D"color:#cc7832">;<br></span><span style=3D"color:#cc7832">      =
      </span>text.setTag(text)<span style=3D"color:#cc7832">;<br></span><sp=
an style=3D"color:#cc7832">            </span>text.setText(getItem(position=
).toString())<span style=3D"color:#cc7832">;<br></span><span style=3D"color=
:#cc7832">            </span><span style=3D"color:#cc7832;font-weight:bold"=
>return </span>convertView<span style=3D"color:#cc7832">;<br></span><span s=
tyle=3D"color:#cc7832">        </span>}<br>    }<span style=3D"color:#cc783=
2">;<br></span><span style=3D"color:#cc7832">    </span>b.setAdapter(adapte=
r<span style=3D"color:#cc7832">, </span><span style=3D"color:#cc7832;font-w=
eight:bold">new </span>DialogInterface.OnClickListener() {<br>        <span=
 style=3D"color:#bbb529">@Override<br></span><span style=3D"color:#bbb529">=
        </span><span style=3D"color:#cc7832;font-weight:bold">public void <=
/span><span style=3D"color:#ffc66d">onClick</span>(DialogInterface dialog<s=
pan style=3D"color:#cc7832">, </span><span style=3D"color:#cc7832;font-weig=
ht:bold">int </span>which) {<br>            dialog.dismiss()<span style=3D"=
color:#cc7832">;<br></span><span style=3D"color:#cc7832">            </span=
>Log.<span style=3D"font-style:italic">d</span>(<span style=3D"color:#6a875=
9">&quot;CallCenterAdapter&quot;</span><span style=3D"color:#cc7832">, </sp=
an><span style=3D"color:#6a8759">&quot;El id de lo que apretaron: &quot; </=
span>+ which)<span style=3D"color:#cc7832">;<br></span><span style=3D"color=
:#cc7832">            </span><span style=3D"color:#cc7832;font-weight:bold"=
>new </span>UpdateOrderStatus().execute(<span style=3D"color:#9876aa">selec=
tedOrder</span><span style=3D"color:#cc7832">, </span>Order.ORDER_STATUS.<s=
pan style=3D"color:#9876aa;font-style:italic">CANCELED</span><span style=3D=
"color:#cc7832">, </span><span style=3D"color:#b389c5">adapter</span>.getIt=
em(which).toString())<span style=3D"color:#cc7832">;<br></span><span style=
=3D"color:#cc7832">        </span>}<br>    })<span style=3D"color:#cc7832">=
;<br></span><span style=3D"color:#cc7832">    </span>b.show()<span style=3D=
"color:#cc7832">;<br></span>}</pre></div><div dir=3D"ltr">-- <br></div><div=
 dir=3D"ltr"><span><div><div>____________________________________<br>L.I Ro=
gelio Delgado Gonz=C3=A1lez<br></div><b><span style=3D"color:rgb(11,83,148)=
">=C2=A0Smart Software Factory</span></b><br></div><span style=3D"color:rgb=
(11,83,148)">:: Innovando en servicios tecnol=C3=B3gicos ::</span></span></=
div>

--001a1140a73a170f96052618ebd6--
