<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4188789752832369696</id><updated>2026-01-27T23:51:01.432-08:00</updated><category term="Android"/><title type='text'>Juliana Corá</title><subtitle type='html'>Android, Java e programação.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://julianacora.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4188789752832369696/posts/default'/><link rel='alternate' type='text/html' href='http://julianacora.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12466387466341348788</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4188789752832369696.post-2454270204947999520</id><published>2012-04-25T11:13:00.001-07:00</published><updated>2012-04-25T11:45:01.349-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>Android: Passagem de parâmetros entre Activities(Telas)</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;&quot;&gt;Neste artigo irei demonstrar a passagem de parâmetros entre duas Activities(Telas). No post anterior utilizamos o método &lt;a href=&quot;http://julianacora.blogspot.com.br/2012/04/android-criando-multiplas-activities.html&quot;&gt;startActivity(intent)&lt;/a&gt;&amp;nbsp;para navegar entre as telas da aplicação.&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;Irei criar uma aplicação básica como exemplo para demostrar a passagem de parâmetros entre Telas. Na primeira tela terá um campo para receber um texto e um botão que ao clicar passará o valor para a segunda tela.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;Crie um novo Projeto com o nome &lt;b&gt;&quot;PassagemParametros&quot;&lt;/b&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;Na Primeira Activity &quot;PassagemParametros.java&quot; será a nossa primeira Tela.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;textarea cols=&quot;70&quot; rows=&quot;38&quot; style=&quot;background-color: #eeeeee; color: black; font-family: &#39;Times New Roman&#39;; font-size: 15px; white-space: pre-wrap;&quot; wrap=&quot;hard&quot;&gt;package br.com.juliana;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class PassagemParametros extends Activity 
{
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        //CRIA OS OBJETOS
        final EditText campoTexto = (EditText) findViewById(R.id.editText);
        Button botao = (Button) findViewById(R.id.envio);
        
        //CLICK DO BOTÃO
        botao.setOnClickListener(new Button.OnClickListener () 
        {
            public void onClick(View v)
            {
                Intent intent = new Intent(v.getContext(), SegundaTela.class);
                Bundle params = new Bundle();
                
                String resposta = campoTexto.getText().toString();
                params.putString(&quot;mensagem&quot;, resposta);
                intent.putExtras(params);
                startActivity(intent);
            }
        });
    }
}
&lt;/textarea&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;&quot;&gt;Para passar parâmetros se usa a classe &lt;b&gt;android.os.Bundle&lt;/b&gt; e o método &lt;b&gt;putExtras(Bundle) &lt;/b&gt;na intent que será passado como parâmetro para a próxima tela.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;O método &lt;b&gt;putString(chave, valor)&lt;/b&gt; utilizei uma String como parâmetro, mas poderia ter usado &lt;b&gt;putInt&lt;/b&gt; no caso o valor ser um integer. A classe &lt;b&gt;Bundle&lt;/b&gt; tem métodos para diferentes tipos primitivos como o &lt;b&gt;putBoolean&lt;/b&gt;, &lt;b&gt;putChar&lt;/b&gt;, &lt;b&gt;putFloat&lt;/b&gt; e vários outros. A variável &lt;b&gt;&quot;valor&quot; &lt;/b&gt;recupera o texto da &lt;b&gt;EditText&lt;/b&gt; do &lt;b&gt;&quot;campoTexto&quot;&lt;/b&gt;&amp;nbsp;utilizando os métodos &lt;b&gt;&quot;getText&quot;&lt;/b&gt; e &lt;b&gt;&quot;toString&quot;&lt;/b&gt;.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;&quot;&gt;Ao executar vejamos como ficou:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-MrE6SWU_r3o/T5gUfWnKt_I/AAAAAAAAAH0/e7U26418r-Q/s1600/tela1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;250&quot; src=&quot;http://1.bp.blogspot.com/-MrE6SWU_r3o/T5gUfWnKt_I/AAAAAAAAAH0/e7U26418r-Q/s320/tela1.png&quot; width=&quot;350&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;Agora irei criar a segunda Activity &lt;b&gt;&quot;SegundaTela.java&quot; &lt;/b&gt;que receberá o valor da primeira tela.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;ol&gt;&lt;textarea cols=&quot;70&quot; rows=&quot;28&quot; style=&quot;background-color: #eeeeee; color: black; font-family: &#39;Times New Roman&#39;; font-size: 15px;&quot; wrap=&quot;hard&quot;&gt;package br.com.juliana;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class SegundaTela extends Activity
{
 @Override
    public void onCreate(Bundle savedInstanceState) 
    {
  super.onCreate(savedInstanceState);
  
  TextView textView = new TextView(this);
  Intent intent = getIntent();
  
  Bundle params = intent.getExtras();  
   
  if(params!=null)
  {   
   String mostraTexto = params.getString(&quot;mensagem&quot;);
   textView.setText(mostraTexto);
   setContentView(textView);
  }
    }
}
&lt;/textarea&gt;&lt;/ol&gt;
&lt;ol&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;O método &lt;b&gt;getIntent()&lt;/b&gt; recupera os parâmetros enviados. Depois de recuperada o método &lt;b&gt;getExtras()&lt;/b&gt; retorna o mesmo bundle criado para enviar os parâmetros.&lt;br /&gt;Para ler os parâmetros passados pelo bundle basta chamar o método &lt;b&gt;getString &lt;/b&gt;e passar o parâmetro String&lt;b&gt; &quot;mensagem&quot;&lt;/b&gt; da activity anterior.&lt;/span&gt;&lt;/ol&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;ol&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;&quot;&gt;Ao executar novamente vejamos como ficou:&lt;/span&gt;&lt;/ol&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-KVFLnTcgMYQ/T5g7098kIuI/AAAAAAAAAIA/sg4gpSvBywc/s1600/tela2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;236&quot; src=&quot;http://2.bp.blogspot.com/-KVFLnTcgMYQ/T5g7098kIuI/AAAAAAAAAIA/sg4gpSvBywc/s320/tela2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ol style=&quot;text-align: -webkit-auto;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;&quot;&gt;Até a próxima, espero que tenham gostado.&lt;/span&gt;&lt;/ol&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://julianacora.blogspot.com/feeds/2454270204947999520/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://julianacora.blogspot.com/2012/04/android-passagem-de-parametros-entre.html#comment-form' title='25 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4188789752832369696/posts/default/2454270204947999520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4188789752832369696/posts/default/2454270204947999520'/><link rel='alternate' type='text/html' href='http://julianacora.blogspot.com/2012/04/android-passagem-de-parametros-entre.html' title='Android: Passagem de parâmetros entre Activities(Telas)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12466387466341348788</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-MrE6SWU_r3o/T5gUfWnKt_I/AAAAAAAAAH0/e7U26418r-Q/s72-c/tela1.png" height="72" width="72"/><thr:total>25</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4188789752832369696.post-8883480214006318145</id><published>2012-04-12T09:32:00.000-07:00</published><updated>2012-04-12T09:32:52.862-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>Android - Criando Múltiplas Activities</title><content type='html'>&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;No post anterior vimos sobre o ciclo de vida de uma Activity, e hoje iremos aprender como criar múltiplas Activities(Telas).&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Exemplo:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; Iremos criar duas activities. A classe “&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Exemplo1&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;” é a activity(atividade) principal do projeto e a classe &quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Exemplo2&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&quot; que será chamada pela primeira tela. A primeira atividade é simplesmente um botão, que quando clicado abre a segunda atividade, que por sua vez consiste em um simples campo de texto editável. Ela não precisa de um botão &quot;Sair&quot;, pois o usuário pode simplesmente clicar no botão &quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Voltar&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&quot; do emulador &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;img height=&quot;10px;&quot; src=&quot;https://lh6.googleusercontent.com/L06vmEoH-YDD8bMCs13ZeVo35t4S-L_ULUniE6akal7Dnc8sXTDg3fTlIyJrbQF6HZImk3eVl1_9TKvfAvL4axareFE8OS-5AU7ljX1C_mBoJWbsT7E&quot; width=&quot;10px;&quot; /&gt;. &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Para simplificar não iremos usar o arquivo de layout XML para criar a nossa tela. Iremos criar dentro da classe Activity.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; font-weight: bold; white-space: normal;&quot;&gt;
&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Crie um projeto com o nome “ExemploActivity” ou dê o nome que achar melhor e quando chegar na etapa abaixo, segue o exemplo.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;div style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; font-weight: bold; white-space: normal;&quot;&gt;
&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; font-weight: normal; white-space: normal;&quot;&gt;
&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;img height=&quot;415px;&quot; src=&quot;https://lh5.googleusercontent.com/3H9psemIw1879dJSEWvcUJZKCE6724I9tegNQFTRU7ABAUJSD3PfdNBvN-Ctvwn4oNal0V3rvRBSjOtLNLEWDnMxroToYKGJNkAmhbWgvIKMzqbmtJ8&quot; width=&quot;520px;&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;color: black; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; font-weight: bold; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;color: black; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Quando você cria um novo projeto o campo “&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Create Activity&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;” vem checado e cria a classe Activity, então não deixamos checado.&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;color: black; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;color: black; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b&gt;Depois do projeto criado, iremos criar a nossa primeira classe. Clique com o botão direito em cima do pacote que o meu é “br.com.juliana” vai em “New/Class” e no campo “name” dê o nome de &quot;Exemplo1&quot;.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;b&gt;&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.6446898190770298&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;img height=&quot;394px;&quot; src=&quot;https://lh5.googleusercontent.com/bOoC-8UeAK3uvcODYKJhwrVH0L4vxtZuiV5M2OPCG6K_B5XAOX_T9gvorkdU2koZOmNOnaVMGfdl0KqjMMC8Fb90iVW0i9vKs3w6Iam20ekvioj7TA4&quot; width=&quot;534px;&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;A chamada para iniciar a segunda atividade ocorre no método &quot;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;handleButtonClick()&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&quot;.&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;div style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;color: black; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.22217537555843592&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;background-color: #cccccc; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;startActivity(new Intent(this, Exemplo2.class));&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: transparent;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Depois crie uma outra classe chamada “Exemplo2” como segue abaixo:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;color: black; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.22217537555843592&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; font-weight: normal; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;color: black; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.22217537555843592&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.6446898190770298&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;img height=&quot;320px;&quot; src=&quot;https://lh3.googleusercontent.com/CCyb3y_DDUosTtq0-dn-TECPQM8q3Wh-6FKsJWU_lt_QVY72QPu-VKJP-OaLo5Ki3K6PFioeYZkFnhEINnXFbgI3ba5QJywIWzV5tROWDxgRvV6B_1E&quot; width=&quot;487px;&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;color: black; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;color: black; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; font-weight: normal; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;color: black; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b&gt;&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;No arquivo AndroidManifest.xml&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;color: black; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;div style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;color: black; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; font-weight: normal; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;color: black; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b&gt;&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;img height=&quot;340px;&quot; src=&quot;https://lh6.googleusercontent.com/tFs6onZNKMRJmPoh646_Wy5c6TW_OssTUHcvJglUsyW9bwjEGUMSjKLO8D4vEtr_OS4LitMmwCFECKk_3w3ukAEJm55h6xZdtoWqBF6UpN22EVCTytY&quot; width=&quot;511px;&quot; /&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;No código acima, eu declarei as duas Activities “&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b&gt;Exemplo1&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;” e “&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b&gt;Exemplo2&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;”. Toda vez que criar uma nova atividade é preciso que declare no arquivo “AndroidManifest.xml”.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;div style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;color: black; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b&gt;Vamos executar a nossa aplicação para ver o resultado:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; font-weight: normal; white-space: normal;&quot;&gt;
&lt;b&gt;&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.6446898190770298&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;img height=&quot;327px;&quot; src=&quot;https://lh4.googleusercontent.com/7UTDA66vooZ2LiCPpE2lmB7ITEV0QWIM6aUKLleFjDr07ayccdRdKUeplfsp1YTc9QXXpBIH8E5LuiU9RFmfhgujTB_Cf3Xvbc87ks_Mnpjb1XSvuzg&quot; width=&quot;459px;&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Ao clicar no botão irá chamar a segunda tela(activity):&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;b&gt;&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.6446898190770298&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;img height=&quot;339px;&quot; src=&quot;https://lh3.googleusercontent.com/8LdYb3ZDMfSapwSWQvQFTsjFlo6STqX2QghGXBdBCvP6yIZVBsZkCrL2-oLwo3579VeuTTImarQCxAuiPGYq4ee_J9aIb-9T0PXNhPt9733RUHfg-uo&quot; width=&quot;477px;&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc; font-family: Arial; font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;&lt;b id=&quot;internal-source-marker_0.22217537555843592&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Então pessoal por hoje é só, espero que tenham gostado. Caso ficaram com dúvida é só comentar. Ate +.&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://julianacora.blogspot.com/feeds/8883480214006318145/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://julianacora.blogspot.com/2012/04/android-criando-multiplas-activities.html#comment-form' title='2 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4188789752832369696/posts/default/8883480214006318145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4188789752832369696/posts/default/8883480214006318145'/><link rel='alternate' type='text/html' href='http://julianacora.blogspot.com/2012/04/android-criando-multiplas-activities.html' title='Android - Criando Múltiplas Activities'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12466387466341348788</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://lh6.googleusercontent.com/L06vmEoH-YDD8bMCs13ZeVo35t4S-L_ULUniE6akal7Dnc8sXTDg3fTlIyJrbQF6HZImk3eVl1_9TKvfAvL4axareFE8OS-5AU7ljX1C_mBoJWbsT7E=s72-c" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4188789752832369696.post-4003744937263274840</id><published>2012-04-11T09:51:00.000-07:00</published><updated>2012-04-19T10:42:28.325-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>Android: Activity - Ciclo de Vida</title><content type='html'>&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Entender o que é um ciclo de vida de uma Activity é fundamental para a criação de uma aplicação mais robusta. Caso sua aplicação é interrompida por uma ligação, e como sua aplicação irá se comportar após sua ligação for finalizada. Após está interrupção, teria que voltar ao mesmo ponto onde sua aplicação parou. Então precisamos entender cada ciclo de vida de uma Activity.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: transparent; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;O diagrama a seguir mostra os caminhos importantes de uma Activity e seu ciclo de vida. &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;div style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;div style=&quot;color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;img height=&quot;612px;&quot; src=&quot;https://lh5.googleusercontent.com/-fnxgIv42AQOEcgpifyk9G3td5MhSvYpkIIx8aIAnPG6wKvWdp96o4l49YIlvGVIhYl5mFodqxG9OkkJZiUxNtU-tB-E3ROiT9mia16JMWmsPEfoMLU&quot; width=&quot;538px;&quot; /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: small; white-space: normal;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.9192779371514916&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Abaixo iremos ver os métodos que controlam os estados da sua aplicação.&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.9192779371514916&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;display: inline ! important; margin-bottom: 0pt; margin-right: 17pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange;&quot;&gt;onCreate()&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;É a primeira função a ser executada quando uma Activity é lançada. Geralmente é a responsável por carregar os layouts XML e outras operações de inicialização. É executada somente uma vez durante a “vida útil” da Activity.&lt;/span&gt;&lt;/div&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.9192779371514916&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;display: inline ! important; margin-bottom: 0pt; margin-right: 17pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange;&quot;&gt;onStart()&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;É chamada imediatamente após a onCreate() – e também quando uma Activity que estava em background volta a ter foco.&lt;/span&gt;&lt;/div&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.9192779371514916&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;display: inline ! important; margin-bottom: 0pt; margin-right: 17pt; margin-top: 0pt;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;o&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;nResume()&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Assim como a onStart(), é chamada na inicialização da Activity (logo após a própria onStart()) &amp;nbsp;e também quando uma Activity volta a ter foco. Qual a diferença entre as duas? A onStart() só é chamada quando a Activity não estava mais visível na tela e volta a ter o foco, enquanto a onResume() &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;sempre&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; é chamada nas “retomadas de foco”.&lt;/span&gt;&lt;/div&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.9192779371514916&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;display: inline ! important; margin-bottom: 0pt; margin-right: 17pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange;&quot;&gt;onPause()&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;É a primeira função a ser invocada quando a Activity perde o foco (ou seja, uma outra Activity vem à frente).&lt;/span&gt;&lt;/div&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.9192779371514916&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;display: inline ! important; margin-bottom: 0pt; margin-right: 17pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange;&quot;&gt;onStop()&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; – &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Análoga à onPause(), só é chamada quando a Activity fica completamente encoberta por outra Activity (não é mais visível).&lt;/span&gt;&lt;/div&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.9192779371514916&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;display: inline ! important; margin-bottom: 0pt; margin-right: 17pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange;&quot;&gt;onDestroy()&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;A última função a ser executada. Depois dela, a Activity é considerada “morta” – ou seja, nao pode mais ser relançada. Se o usuário voltar a requisitar essa Activity, outro objeto será contruído.&lt;/span&gt;&lt;/div&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.9192779371514916&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;display: inline ! important; margin-bottom: 0pt; margin-right: 17pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange;&quot;&gt;onRestart()&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Chamada imediatamente antes da onStart(), quando uma Activity volta a ter o foco depois de estar em background.&lt;/span&gt;&lt;/div&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: small; white-space: normal;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;b&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Segue um exemplo de como ocorre um ciclo de vida de uma Activity. Cada método mostra no Log quando cada um foi executado.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;div style=&quot;background-color: transparent; color: black;&quot;&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Crie um novo projeto e cole o código em sua Classe Activity gerada.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;textarea cols=&quot;55&quot; rows=&quot;45&quot; style=&quot;background-color: #eeeeee; color: black; font-family: &#39;Times New Roman&#39;; font-size: 15px; white-space: pre-wrap;&quot; wrap=&quot;hard&quot;&gt;package br.com.juliana;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

public class CicloDeVidaActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Log.v(&quot;TAG&quot;, &quot;onCreate()&quot;); 
    }    
    
    @Override
    protected void onDestroy() {
     super.onDestroy(); 
     Log.v(&quot;TAG&quot;, &quot;onDestroy()&quot;);
    }

    @Override
    protected void onPause() {
     super.onPause(); 
     Log.v(&quot;TAG&quot;, &quot;onPause()&quot;);
    }

    @Override
    protected void onResume() {
     super.onResume();
     Log.v(&quot;TAG&quot;, &quot;onResume()&quot;);
    }

    @Override
    protected void onStart() {
     super.onStart();
     Log.v(&quot;TAG&quot;, &quot;onResume()&quot;);
    }

    @Override
    protected void onStop() {
     super.onStop();
     Log.v(&quot;TAG&quot;, &quot;onStop()&quot;);
    }

    @Override
    protected void onRestart() {
     super.onRestart();
     Log.v(&quot;TAG&quot;, &quot;onRestart()&quot;);
    }    
}
&lt;/textarea&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;div style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-weight: normal;&quot;&gt;
&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Execute a aplicação e visualize o Log.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;div style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Para visualizar as mensagens do Log, vá em “Window/Show View/Other/LogCat”.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;1 - Ao executar sua aplicação observe que no Log mostrou:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;img height=&quot;71px;&quot; src=&quot;https://lh6.googleusercontent.com/wpVjxSBClgZQOgzfzivbwPK7So9xfFOuJ_TNZqgKTwIMi4P7UJDLCR6UkdJNNPAd_qY3Exe2Ksfp1-svFWyPe_BDkIha65oZhu-ap4uLlbNHqA_mky0&quot; width=&quot;520px;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;2 - Depois disso clique no botão voltar do emulador e veja novamente o Log:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;img height=&quot;68px;&quot; src=&quot;https://lh6.googleusercontent.com/XAOfr6SaEJ7_NDOokOp2mjXp8XcMQZ9EHygmaVxN1yOU13fznYQi9Ar3nYyJM6uu5xybLbYc5AHh2piRiUz2w-9VPzu7Qch3yF6MwiCVqnPCA2FKw2A&quot; width=&quot;520px;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;3 - Clique novamente na sua aplicação:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;img height=&quot;71px;&quot; src=&quot;https://lh4.googleusercontent.com/zuS40UC_K0lEWUJ6RuWDMDBk_FOZMA3BniPSgjVfwenilED9G0GZ_6jnPwYaQ3ljd9hxt5JNPRhKcCKLYs1N2rsRjwokHyuVJJwasS80K9fR5w-II5w&quot; width=&quot;520px;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: small; font-weight: normal; white-space: normal;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Note que na 1° etapa os métodos onCreate e onResume foram criados.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: small; font-weight: normal; white-space: normal;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Depois na 2° etapa os métodos passaram para onPause, onStop e onDestroy.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: small; font-weight: normal; white-space: normal;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;E quando voltou novamente na sua aplicação chamou os métodos onCreate e onResume.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #384042; font-family: Verdana; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #cccccc; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Hoje vimos detalhes sobre o ciclo de vida de uma Activity. No próximo post será Criando mais que uma Activities. Até +.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;/div&gt;
&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b id=&quot;internal-source-marker_0.07690173224546015&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://julianacora.blogspot.com/feeds/4003744937263274840/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://julianacora.blogspot.com/2012/04/android-activity-ciclo-de-vida.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4188789752832369696/posts/default/4003744937263274840'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4188789752832369696/posts/default/4003744937263274840'/><link rel='alternate' type='text/html' href='http://julianacora.blogspot.com/2012/04/android-activity-ciclo-de-vida.html' title='Android: Activity - Ciclo de Vida'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12466387466341348788</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://lh5.googleusercontent.com/-fnxgIv42AQOEcgpifyk9G3td5MhSvYpkIIx8aIAnPG6wKvWdp96o4l49YIlvGVIhYl5mFodqxG9OkkJZiUxNtU-tB-E3ROiT9mia16JMWmsPEfoMLU=s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4188789752832369696.post-786832273178650994</id><published>2012-04-05T04:53:00.000-07:00</published><updated>2012-04-05T06:26:42.204-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>Android: Conceito de uma Activity</title><content type='html'>&lt;b id=&quot;internal-source-marker_0.6997108031064272&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Aqui no blog você já aprendeu &lt;/span&gt;&lt;a href=&quot;http://julianacora.blogspot.com.br/2012/03/como-instalar-e-configurar-o-sdk_25.html&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;como instalar e configurar o SDK Android no Eclipse&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; e criar o seu &lt;/span&gt;&lt;a href=&quot;http://julianacora.blogspot.com.br/2012/03/criando-o-primeiro-projeto-android-no.html&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;primeiro projeto Android&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;e agora iremos aprender mais sobre a classe Activity que usamos em nosso projeto inicial.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;b id=&quot;internal-source-marker_0.6997108031064272&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; font-weight: normal; text-decoration: none; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.6997108031064272&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;O que seria uma Activity?&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Uma activity é um componente chave do Android. É basicamente uma classe gerenciadora de UI (interface com o Usuário). Para ter uma interação com a interface de usuário, uma classe deve ser herdada de uma Activity. Todo aplicativo android começa por uma Activity.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: whitesmoke; color: black; font-family: Arial; font-size: 16px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Exemplo de uma Activity

&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: whitesmoke; color: black; font-family: Arial; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;b style=&quot;font-weight: normal; text-decoration: none;&quot;&gt;&lt;img height=&quot;205px;&quot; src=&quot;https://lh4.googleusercontent.com/vAcEd23s93ptG6qTdfhaOyDm7HGMX6vWQ4R3P-tQIOfdtrZizCjDRCoU_ILu5KejQFqPoP7-IUV8s6NYFZDtoa2_cVKfvLg5d9NMENcVaXgCgm8OhLg&quot; width=&quot;439px;&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;b style=&quot;font-weight: normal; text-decoration: none;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;b style=&quot;font-weight: normal; text-decoration: none;&quot;&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;b style=&quot;font-weight: normal; text-decoration: none;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.6997108031064272&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: whitesmoke; color: black; font-family: Arial; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Registrando Activity no arquivo AndroidManifest.xml&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: whitesmoke; color: black; font-family: Arial; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Após criar uma classe é necessário registrar a Activity para que o Android precise saber quais classes são atividades. Para registar uma Activity, abra o arquivo AndroidManifest.xml, e incluir o registro da Activity.
&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: black; font-family: Arial; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: whitesmoke; color: black; font-family: Arial; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;img height=&quot;139px;&quot; src=&quot;https://lh5.googleusercontent.com/XoAL5G-jEltxRH-4ezh27Tb80nVSeqoPYEhAuTbDTuwxZRqO7lkA53YY8Nf8BjT1jUlDiYj5f5dIBBNrjL8fDT9FKSUjaVgOjnTWVnGnYi6PH_k0GbM&quot; width=&quot;500px;&quot; /&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;b style=&quot;font-weight: normal; text-decoration: none;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.6997108031064272&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;b style=&quot;font-weight: normal; text-decoration: none;&quot;&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;b style=&quot;font-weight: normal; text-decoration: none;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.6997108031064272&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;b style=&quot;font-weight: normal; text-decoration: none;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.6997108031064272&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.6997108031064272&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Ou seja, quando uma aplicação android é executada, na verdade é a sua Activity principal que é lançada. A activity é definida como padrão na &lt;/span&gt;&lt;a href=&quot;http://julianacora.blogspot.com.br/2012/03/criando-o-primeiro-projeto-android-no.html&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;criação do projeto&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; quando é lançada. &lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;b style=&quot;font-weight: normal; text-decoration: none;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.6997108031064272&quot; style=&quot;font-weight: normal;&quot;&gt;
&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;div style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;font-weight: normal; text-decoration: none;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot; style=&quot;font-weight: normal; white-space: pre-wrap;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre-wrap;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;b style=&quot;font-weight: normal; text-decoration: none;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.6997108031064272&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;b style=&quot;font-weight: normal; text-decoration: none;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.6997108031064272&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.6997108031064272&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Hoje vimos detalhes sobre a classe Activity. &lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;b style=&quot;font-weight: normal; text-decoration: none;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.6997108031064272&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.6997108031064272&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.6997108031064272&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: #cccccc; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;No próximo post iremos aprender sobre o ciclo de vida de uma Activity. Espero que tenham gostado. Até +.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;b style=&quot;font-weight: normal; text-decoration: none;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.6997108031064272&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.6997108031064272&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;b style=&quot;font-weight: normal; text-decoration: none;&quot;&gt;&lt;b id=&quot;internal-source-marker_0.6997108031064272&quot; style=&quot;font-weight: normal;&quot;&gt;
&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;b style=&quot;font-weight: normal; text-decoration: none;&quot;&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: transparent; font-family: &#39;Times New Roman&#39;; font-size: medium; white-space: normal;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: transparent;&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.6997108031064272&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://julianacora.blogspot.com/feeds/786832273178650994/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://julianacora.blogspot.com/2012/04/android-conceito-de-uma-activity.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4188789752832369696/posts/default/786832273178650994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4188789752832369696/posts/default/786832273178650994'/><link rel='alternate' type='text/html' href='http://julianacora.blogspot.com/2012/04/android-conceito-de-uma-activity.html' title='Android: Conceito de uma Activity'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12466387466341348788</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://lh4.googleusercontent.com/vAcEd23s93ptG6qTdfhaOyDm7HGMX6vWQ4R3P-tQIOfdtrZizCjDRCoU_ILu5KejQFqPoP7-IUV8s6NYFZDtoa2_cVKfvLg5d9NMENcVaXgCgm8OhLg=s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4188789752832369696.post-6526744494292559004</id><published>2012-03-25T18:01:00.000-07:00</published><updated>2012-04-04T10:31:17.955-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>Criando o Primeiro Projeto Android no Eclipse</title><content type='html'>No post de hoje estarei ensinando de como criar seu primeiro projeto Hello World no Android.&lt;br /&gt;
Caso você não instalou os respectivos arquivos necessários &lt;a href=&quot;http://julianacora.blogspot.com.br/2012/03/como-instalar-e-configurar-o-sdk_25.html&quot;&gt;veja este tutorial&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Caso já tenha tudo instalado, vamos dar início ao primeiro projeto.&lt;br /&gt;
&lt;br /&gt;
Abra o Eclipse e clique em &lt;b&gt;File&amp;gt;New&amp;gt;Project...&lt;/b&gt;. Selecione &lt;b&gt;Android&amp;gt;Android Project&lt;/b&gt;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-mh3XYWU1E7A/T2-LJGNa5GI/AAAAAAAAAEM/SRBVfGIpd5c/s1600/print1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;259&quot; src=&quot;http://3.bp.blogspot.com/-mh3XYWU1E7A/T2-LJGNa5GI/AAAAAAAAAEM/SRBVfGIpd5c/s320/print1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Clique em &lt;b&gt;Next&amp;gt; &lt;/b&gt;e no campo &lt;b&gt;Project Name: &lt;/b&gt;(nome de seu projeto).&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-iyIZjsIbtrM/T2-Mwi-E6DI/AAAAAAAAAEU/uhga10_TjAw/s1600/print2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;305&quot; src=&quot;http://4.bp.blogspot.com/-iyIZjsIbtrM/T2-Mwi-E6DI/AAAAAAAAAEU/uhga10_TjAw/s320/print2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Clique em &lt;b&gt;Next&amp;gt;&lt;/b&gt;. Nesta tela escolha a versão do Android que queira usar. &amp;nbsp;Escolhi a versão 2.3.3, utilize a versão que você tenha criando no dispositivo com a versão correspondente.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-0q4p2BbZQ-Q/T2-OBIplAUI/AAAAAAAAAEk/6tzwJvpTRE8/s1600/print3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;310&quot; src=&quot;http://4.bp.blogspot.com/-0q4p2BbZQ-Q/T2-OBIplAUI/AAAAAAAAAEk/6tzwJvpTRE8/s320/print3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Clique em &lt;b&gt;Next&amp;gt;&lt;/b&gt;. Em &lt;b&gt;Package Name: &lt;/b&gt;(pacote do projeto) coloquei &lt;b&gt;br.com.juliana &lt;/b&gt;mais de o nome que achar melhor. Para finalizar clique me &lt;b&gt;Finish&amp;gt;&lt;/b&gt;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-gg35oHzAtzw/T2-PeHydAnI/AAAAAAAAAEs/KuoR-VwmxeY/s1600/print3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;310&quot; src=&quot;http://4.bp.blogspot.com/-gg35oHzAtzw/T2-PeHydAnI/AAAAAAAAAEs/KuoR-VwmxeY/s320/print3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Pronto! Criamos nosso primeiro projeto. Antes de dar continuidade vamos entender a estrutura do projeto.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-hDjY5VUcr3E/T2-TozvrB3I/AAAAAAAAAE8/GW17j2vkWaw/s1600/print3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-hDjY5VUcr3E/T2-TozvrB3I/AAAAAAAAAE8/GW17j2vkWaw/s320/print3.png&quot; width=&quot;164&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;src&lt;/b&gt; - Pasta do Projeto que contém as classes Java. Contém a classe HelloWorld que foi criada pelo Wizard.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;gen&lt;/b&gt; - Contém a classe R.java que é gerada automaticamente e permite que a aplicação acesse qualquer recurso como arquivos e imagens.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;assets&lt;/b&gt; - Contém arquivos opcionais ao projeto, como por exemplo, uma fonte customizada.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;res&lt;/b&gt; - Pasta que contém os recursos da aplicação, como imagens, layouts de telas. Tem 3 subpastas: drawable, layout e values.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;drawable&lt;/b&gt; - Pasta com as imagens da aplicação. Existe 3 pastas: drawable-ldpi,&amp;nbsp;drawable-mdpi e&amp;nbsp;drawable-hdpi para cada resolução de telas diferentes.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;layout&lt;/b&gt; - Contém arquivos XML de layouts para construir telas da aplicação.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;values&lt;/b&gt; - Onde estão localizadas as variáveis do layout(XML).&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Observe o código-fonte abaixo, está classe &lt;b&gt;Hello World&lt;/b&gt; foi gerada pelo wizard é onde fica toda a lógica da aplicação. A constante &lt;b&gt;R.layout.main&lt;/b&gt; é o que gera a abertura da tela identificada pelo arquivo &lt;b&gt;main.xml&lt;/b&gt;&amp;nbsp;(inicia uma Activity) que se localiza dentro da pasta &lt;b&gt;layout&lt;/b&gt;. No próximo post explicarei melhor o que seria uma classe &lt;b&gt;Activity&lt;/b&gt;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-wwtERBhCByQ/T2-yeXfQfII/AAAAAAAAAFE/kc3l1EacY-Q/s1600/print1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;140&quot; src=&quot;http://3.bp.blogspot.com/-wwtERBhCByQ/T2-yeXfQfII/AAAAAAAAAFE/kc3l1EacY-Q/s320/print1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-lO08rytWD98/T2-0iNGMK9I/AAAAAAAAAFM/5J9z0BnOTYg/s1600/print1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;126&quot; src=&quot;http://2.bp.blogspot.com/-lO08rytWD98/T2-0iNGMK9I/AAAAAAAAAFM/5J9z0BnOTYg/s320/print1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Agora abra o arquivo &lt;b&gt;strings.xml&lt;/b&gt; que se localiza dentro da pasta &lt;b&gt;values&lt;/b&gt;, e altere a linha:&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #ffd966;&quot;&gt;&amp;lt;string name=&quot;hello&quot;&amp;gt;Hello World, HelloWorld!&amp;lt;/string&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
por:&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #ffd966;&quot;&gt;&amp;lt;string name=&quot;hello&quot;&amp;gt;Hello World, Seja bem vindo ao Blog!&amp;lt;/string&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #ffd966;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white;&quot;&gt;Dentro do arquivo &lt;b&gt;main.xml&lt;/b&gt; contém uma tag &lt;b&gt;&amp;lt;TextView&amp;gt;&lt;/b&gt; que exibe um texto na tela. Essa tag define o atributo &lt;b&gt;android:text=&quot;@string/hello&quot;&lt;/b&gt;, que utiliza uma mensagem identificada pela chave &lt;b&gt;hello&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
localizada no arquivo &lt;b&gt;strings.xml&lt;/b&gt; que foi citado acima.&lt;br /&gt;
&lt;br /&gt;
Agora iremos executar nosso projeto. Clique com o botão direito sobre o projeto e selecione &lt;b&gt;Run As&amp;gt;Android Application.&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-HBkl7qeubOE/T2-8YrNZKwI/AAAAAAAAAFU/qGU81QVgsVU/s1600/print1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;226&quot; src=&quot;http://1.bp.blogspot.com/-HBkl7qeubOE/T2-8YrNZKwI/AAAAAAAAAFU/qGU81QVgsVU/s320/print1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Na primeira execução o emulador demora para abrir, mais a cada mudança no projeto não fechar o emulador, só executar novamente o projeto.&lt;br /&gt;
Para modificar a resolução do emulador, caso a tela ficou grande, volte ao &lt;b&gt;AVD Manager&lt;/b&gt; e edite a resolução.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-UzOrAlTxGwo/T2--6iiitiI/AAAAAAAAAFc/u7WDLESWqI0/s1600/print1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-UzOrAlTxGwo/T2--6iiitiI/AAAAAAAAAFc/u7WDLESWqI0/s320/print1.png&quot; width=&quot;196&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Pronto. Espero que tenha gostado. No próximo post irei explicar o que seria uma classe Activity.</content><link rel='replies' type='application/atom+xml' href='http://julianacora.blogspot.com/feeds/6526744494292559004/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://julianacora.blogspot.com/2012/03/criando-o-primeiro-projeto-android-no.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4188789752832369696/posts/default/6526744494292559004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4188789752832369696/posts/default/6526744494292559004'/><link rel='alternate' type='text/html' href='http://julianacora.blogspot.com/2012/03/criando-o-primeiro-projeto-android-no.html' title='Criando o Primeiro Projeto Android no Eclipse'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12466387466341348788</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-mh3XYWU1E7A/T2-LJGNa5GI/AAAAAAAAAEM/SRBVfGIpd5c/s72-c/print1.png" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Campinas - São Paulo, Brasil</georss:featurename><georss:point>-22.9071048 -47.0632391</georss:point><georss:box>-23.1411283 -47.3790961 -22.6730813 -46.747382099999996</georss:box></entry><entry><id>tag:blogger.com,1999:blog-4188789752832369696.post-2936721548280243446</id><published>2012-03-25T04:36:00.000-07:00</published><updated>2012-03-26T06:57:33.736-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>Como Instalar e Configurar o SDK do Android</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-HFCs4JzHNbw/T28EpU0CKVI/AAAAAAAAADk/jOIGUhgsCxk/s1600/androideclipse.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-HFCs4JzHNbw/T28EpU0CKVI/AAAAAAAAADk/jOIGUhgsCxk/s1600/androideclipse.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;u&gt;Neste Documento&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;1.&lt;/b&gt; Preparando seu computador de desenvolvimento&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;2.&lt;/b&gt; Fazendo o download do SDK do Android&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;3.&lt;/b&gt; Instalar o plugin ADT no Eclipse&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Passo 1. Preparando seu computador de desenvolvimento&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Antes de começar com o SDK do Android, é necessário possuir uma Maquina Virtual Java instalada, caso você não o tenha feito.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Para instalar o Eclipse, você pode baixar neste local.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;http://www.eclipse.org/downloads/&quot;&gt;http://www.eclipse.org/downloads/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://www.eclipse.org/downloads/&quot;&gt;&lt;/a&gt;

Passo 2. Fazendo o download do SDK do Android&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Primeiramente faça o download do SDK do Android no link abaixo.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;http://developer.android.com/sdk/index.html&quot;&gt;http://developer.android.com/sdk/index.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Após o termino do download, crie uma pasta em sua máquina e descompacte o arquivo .zip dentro da pasta que você criou. Neste tutorial utilizei o SDK para o Windows.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Agora iremos adicionar o diretório tools do SDK ao path do seu sistema. Isto possibilita rodar o ADB - (Android Debug Bridge) e outras ferramentas de linha de comando sem precisar especificar o caminho completo para o diretório tools.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;No Windows 7:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Clique com o botão direito em  Computador e selecione Propriedades. Em Configurações avançadas do sistema na aba Avançado e depois Variáveis de Ambiente em Variáveis do Sistema procure a variável Path e clique duas vezes. Adicione o caminho completo para o diretório tools.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ffd966; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Ex :  C:\tools\SDK_ANDROID\android-sdk-windows\tools;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;No linux:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Abaixo os comandos para a descompactação do arquivo SDK e execução do Android no console:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #ffd966; font-family: Arial, Helvetica, sans-serif;&quot;&gt;$ tar -zxvf android-sdk_r17-linux.tgz&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #ffd966; font-family: Arial, Helvetica, sans-serif;&quot;&gt;$&amp;nbsp;cd android-sdk-linux/tools/&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #ffd966;&quot;&gt;$ ./android&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Sugiro que adicione o diretório do SDK Android na variável PATH. Segue o comando abaixo:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #ffd966; font-family: Arial, Helvetica, sans-serif;&quot;&gt;$ cd /etc&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #ffd966; font-family: Arial, Helvetica, sans-serif;&quot;&gt;$ vi profile&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;acrescenta a linha no exemplo abaixo:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #ffd966;&quot;&gt;PATH=$PATH:/home/juliana/sdk_android/android-sdk-linux/tools&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #ffd966;&quot;&gt;export PATH&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #ffd966;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Ao executar o comando ./android abrirá um formulário como segue abaixo:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-iHDI6Q6zlcE/T296-21MFII/AAAAAAAAADs/i4Noujc_mbo/s1600/print1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;218&quot; src=&quot;http://1.bp.blogspot.com/-iHDI6Q6zlcE/T296-21MFII/AAAAAAAAADs/i4Noujc_mbo/s320/print1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-WYA00GW139E/T297reQERWI/AAAAAAAAAD0/gQ1JtzBrr8g/s1600/print2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;http://3.bp.blogspot.com/-WYA00GW139E/T297reQERWI/AAAAAAAAAD0/gQ1JtzBrr8g/s320/print2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Clique em Accept All e no botão Install.&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555555; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-4qiIGKBNWhE/T297_ywBSrI/AAAAAAAAAD8/xuaZVhvc-6M/s1600/print3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;158&quot; src=&quot;http://2.bp.blogspot.com/-4qiIGKBNWhE/T297_ywBSrI/AAAAAAAAAD8/xuaZVhvc-6M/s320/print3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b style=&quot;color: orange; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Passo 3. Instalar o plugin ADT no Eclipse&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Para começar a desenvolver aplicações com Android no Eclipse, primeiramente você precisa instalar um plugin chamado Android Development Tools - (ADT), que é projetado para dar-lhe um ambiente poderoso, integrado, para a criação de aplicativos Android. Em geral, o desenvolvimento no Eclipse com ADT é uma abordagem altamente recomendada e é o caminho mais rápido para começar com o Android.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Como estou usando o Eclipse Helios, para instalar o plugin ADT, vá em Help/Install New Software... e clique em Add no canto superior direito. No campo name digite &quot;ADT Plugin&quot; e no campo Location digite a URL como segue abaixo:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ffd966; font-family: Arial, Helvetica, sans-serif;&quot;&gt;https://dl-ssl.google.com/android/eclipse/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ffd966; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-5QlwRHadnEY/T29_XnDa4WI/AAAAAAAAAEE/fKcTpjUguN0/s1600/print4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;134&quot; src=&quot;http://4.bp.blogspot.com/-5QlwRHadnEY/T29_XnDa4WI/AAAAAAAAAEE/fKcTpjUguN0/s320/print4.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Clique em OK.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Se você tiver problemas na aquisição do plugin, tente usar o &quot;http&quot; na URL em Location, em vez de &quot;https&quot; (https é preferido por razões de segurança).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Em Available Software, selecione a caixa de seleção ao lado de Developer Tools e clique em Next.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Na próxima janela, você verá uma lista das ferramentas para ser baixado. Clique em Next.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Leia e aceite os acordos de licença, clique em Finish.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Se você receber uma aviso de segurança dizendo que a autenticidade ou validade do software não pode ser estabelecida, clique em OK.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Quando a instalação estiver concluída, reinicie o Eclipse. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Depois de ter reiniciado, iremos em Window &amp;gt; Preferences, selecione Android no lado esquerdo.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Em SDK Location clique em Browse..., localize o diretório do SDK baixado em sua máquina.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Pressione Apply, e depois OK.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://julianacora.blogspot.com/feeds/2936721548280243446/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://julianacora.blogspot.com/2012/03/como-instalar-e-configurar-o-sdk_25.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4188789752832369696/posts/default/2936721548280243446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4188789752832369696/posts/default/2936721548280243446'/><link rel='alternate' type='text/html' href='http://julianacora.blogspot.com/2012/03/como-instalar-e-configurar-o-sdk_25.html' title='Como Instalar e Configurar o SDK do Android'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/12466387466341348788</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-HFCs4JzHNbw/T28EpU0CKVI/AAAAAAAAADk/jOIGUhgsCxk/s72-c/androideclipse.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Campinas - São Paulo, Brasil</georss:featurename><georss:point>-22.9071048 -47.0632391</georss:point><georss:box>-23.1411283 -47.3790961 -22.6730813 -46.747382099999996</georss:box></entry></feed>