Академический Документы
Профессиональный Документы
Культура Документы
Pontap inicial...
Toshi Kurauchi
andrew.kurauchi@gmail.com
@toshikurauchi
http://developer.android.com/index.html
Dvidas?
Obrigado!
Criando o emulador...
- Window '-- AVD Manager '-- New...
Criando o emulador...
- Window '-- AVD Manager '-- New...
Criando o emulador...
- Window '-- AVD Manager '-- New...
Criando o emulador...
- Window '-- AVD Manager '-- New...
Criando o emulador...
- Window '-- AVD Manager '-- New...
Criando o emulador...
- Window '-- AVD Manager '-- New...
Criando o emulador...
- Window '-- AVD Manager '-- New...
Criando o emulador...
- Window '-- AVD Manager Dica: '-- New...
Criando o emulador...
- Window '-- AVD Manager Dica: '-- New...
JAVA
<XML>
JAVA
Densidades de tela
Resource qualifiers
strings.xml
AndroidManifest.xml
AndroidManifest.xml
AndroidManifest.xml
AndroidManifest.xml
AndroidManifest.xml
AndroidManifest.xml
AndroidManifest.xml
Tela
=
Tela
=
Tela
Activity (Java)
=
Tela
Activity (Java)
=
Tela
Activity (Java)
+ layout (xml)
Layout XML
Layout XML
LinearLayout (vertical)
Layout XML
LinearLayout (vertical)
Layout XML
LinearLayout (vertical)
Layout XML
LinearLayout (vertical)
Layout XML
LinearLayout (vertical)
Layout XML
LinearLayout (horizontal)
Layout XML
LinearLayout (horizontal)
Layout XML
LinearLayout (horizontal)
Layout XML
LinearLayout (horizontal)
Layout XML
LinearLayout (horizontal)
Layout XML
RelativeLayout
Layout XML
RelativeLayout
Layout XML
RelativeLayout
Layout XML
RelativeLayout
Views
Views
<RadioButton>
Views
<RadioButton>
<DatePicker>
Views
<RadioButton>
<RatingBar>
<DatePicker>
Views
<TextView> Texto <RadioButton> <RatingBar>
<DatePicker>
Views
<TextView> Texto <RadioButton> <RatingBar>
<Button>
<DatePicker>
Views
<TextView> Texto <RadioButton> <RatingBar>
Views
<TextView> Texto <RadioButton> <CheckBox>
<RatingBar>
Views
<TextView> Texto <RadioButton> <CheckBox>
<RatingBar>
Etc...
<EditText> <Button> <DatePicker>
Activity
Activity
Activity
Activity
Rodando...
onPause() onStop() onDestroy()
Activity
Activity
Activity
Activity
XML
Layout XML
<Button android:layout_width="..." android:layout_height="..." android:layout_id="@+id/botao" />
Layout XML
<Button android:layout_width="..." android:layout_height="..." android:layout_id="@+id/botao" />
findViewById(?)
Diretrio res
Diretrio res
Button
findViewById(R.id.botao)
Clicando no boto
Permisses...
Permisses...
Acessando a internet...
Acessando a internet...
Acessando a internet...
Acessando a internet...
HttpClient c = new DefaultHttpClient();
Acessando a internet...
HttpClient c = new DefaultHttpClient(); HttpGet get = new HttpGet("http://www.ime.usp.br");
Acessando a internet...
HttpClient c = new DefaultHttpClient(); HttpGet get = new HttpGet("http://www.ime.usp.br"); HttpResponse response = c.execute(get);
Acessando a internet...
HttpClient c = new DefaultHttpClient(); HttpGet get = new HttpGet("http://www.ime.usp.br"); HttpResponse response = c.execute(get); String conteudo = EntityUtils.toString(response.getEntity());
Acessando a internet...
HttpClient c = new DefaultHttpClient(); HttpGet get = new HttpGet("http://www.ime.usp.br"); HttpResponse response = c.execute(get); t String conteudo = e n r e t EntityUtils.toString(response.getEntity()); In
m r e
s is
e d o
Fragments
Fragments
Fragments
Fragments
Fragments
Activity
Activity
p a
o d r i art
n o H ( 0 3.
m o eyC
! ! ! ) b
Activity
n o H ( Compatibility 0 . Library 3 o d r i t r a p a
m o eyC
! ! ! ) b
ActionBar
ActionBar
ActionBar
ActionBar
ActionBar
ActionBar
res/menu/main_menu.xml
ActionBar
ActionBar
ActionBar
d r i t r pa
0 . 3 o
Links teis
http://developer.android.com/index.html http://developer.android.com/design/index.html http://actionbarsherlock.com/ http://pivotal.github.com/robolectric/ http://blog.stylingandroid.com/ http://code.google.com/p/google-gson/