TADS IFGoiano-Urutaí
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.
Procurar
 
 

Resultados por:
 


Rechercher Pesquisa avançada

Últimos assuntos
» Dowloand de Videos youtube Sem Permissão adminstrador
Dialog Alert Android EmptySeg Jan 02, 2023 2:13 pm por juk

» Cypecad 2019
Dialog Alert Android EmptySeg Jan 02, 2023 1:41 pm por juk

» Atualizando é instalando o IExplorer 11 no windows 7
Dialog Alert Android EmptyTer Ago 30, 2022 10:54 pm por juk

» COMO HABILITAR INTERNET EXPLORER NO WINDOWS 10
Dialog Alert Android EmptySex Abr 29, 2022 6:43 pm por juk

» Usando o Monitor de Recursos do sistema para identificar processos Associados.
Dialog Alert Android EmptyQua Abr 06, 2022 10:19 am por juk

» Fazendo backup do anydesk
Dialog Alert Android EmptyTer Abr 05, 2022 7:30 pm por juk

» Recuperando Favoritos, senhas apos formatar o navegador (Mozilla Firefox ou Chrome)
Dialog Alert Android EmptyTer Abr 05, 2022 7:28 pm por juk

» Comando para tentar recuperar o windows
Dialog Alert Android EmptyQua Out 27, 2021 5:52 pm por juk

» NGROK para divulgação de site remoto
Dialog Alert Android EmptyTer Set 29, 2020 9:40 am por juk

Quem está conectado?
1 usuário online :: 0 registrados, 0 invisíveis e 1 visitante

Nenhum

[ Ver toda a lista ]


O recorde de usuários online foi de 192 em Ter Out 26, 2021 6:07 am

Dialog Alert Android

Ir para baixo

Dialog Alert Android Empty Dialog Alert Android

Mensagem  juk Sex Nov 14, 2014 5:33 am

Código:

Alert Dialog Code Start */
                  AlertDialog.Builder alert = new AlertDialog.Builder(
                        context);
                  if (positivo)
                     alert.setTitle("Positivo ");
                  if (negativo)
                     alert.setTitle("Negativo ");

                  alert.setMessage("Comentário:");

               
                  final EditText input = new EditText(context);
                  alert.setView(input);

                  alert.setPositiveButton("OK",
                        new DialogInterface.OnClickListener() {
                           public void onClick(DialogInterface dialog,
                                 int whichButton) {
                              Dialog pergunta = new Dialog();

                              String srt = input.getEditableText()
                                    .toString();
                              
                              //verificar se o retorno esta funcionando
                              if(pergunta.confirmar(context))
                              {
                                 Log.d("Enviar","envia essa porra ai");
                                 enviarComentario(srt);
                              }
                              else
                                 Log.d("Enviar","vai enviar porra nenhuma");
                              
                              
                              Toast.makeText(context, srt + " srt",
                                    Toast.LENGTH_LONG).show();

                           }
                              
                        });
                  alert.setNegativeButton("CANCEL",
                        new DialogInterface.OnClickListener() {
                           public void onClick(DialogInterface dialog,
                                 int whichButton) {
                              
                              dialog.cancel();
                           }
                        });
                  AlertDialog alertDialog = alert.create();
                  alertDialog.show();
               

                  
               }
juk
juk

Mensagens : 262
Data de inscrição : 02/04/2012

Ir para o topo Ir para baixo

Ir para o topo

- Tópicos semelhantes

 
Permissões neste sub-fórum
Não podes responder a tópicos