SlideShare uma empresa Scribd logo
1 de 5
Baixar para ler offline
Preferences
•                import

• http://db.tt/xNwRC2
(             )

• Preferences
  – getSharedPreferenes
  – getPreferences

• getString, getInt, getBoolean
(              )

• Preferences

• Editor
  – Preferences#edit()

• putString, putInt, putBoolean

• commit (Preferences#commit)
UI (PreferencesActivity)

•       (http://bit.ly/rtf4C4)
•
•         OptionMenu
•

Mais conteúdo relacionado

Mais de YAMANE Toshiaki (20)

Lambda ECS Worker Pattern
Lambda ECS Worker PatternLambda ECS Worker Pattern
Lambda ECS Worker Pattern
 
Okinawa makers
Okinawa makersOkinawa makers
Okinawa makers
 
Geek な Recipe の共有
Geek な Recipe の共有Geek な Recipe の共有
Geek な Recipe の共有
 
Git Workshop 20130720
Git Workshop 20130720Git Workshop 20130720
Git Workshop 20130720
 
Designers hack
Designers hackDesigners hack
Designers hack
 
底辺部な勉強会へのお誘い
底辺部な勉強会へのお誘い底辺部な勉強会へのお誘い
底辺部な勉強会へのお誘い
 
2012.10.27 のアンカンファレンスのスライド
2012.10.27 のアンカンファレンスのスライド2012.10.27 のアンカンファレンスのスライド
2012.10.27 のアンカンファレンスのスライド
 
Coderetreat
CoderetreatCoderetreat
Coderetreat
 
Make androidproject.2
Make androidproject.2Make androidproject.2
Make androidproject.2
 
Hello world
Hello worldHello world
Hello world
 
Android Fundamentals
Android FundamentalsAndroid Fundamentals
Android Fundamentals
 
ojag20120519
ojag20120519ojag20120519
ojag20120519
 
20120512
2012051220120512
20120512
 
X hago3
X hago3X hago3
X hago3
 
20110205.apple1emu
20110205.apple1emu20110205.apple1emu
20110205.apple1emu
 
20110205.conference
20110205.conference20110205.conference
20110205.conference
 
Introduction ofintent
Introduction ofintentIntroduction ofintent
Introduction ofintent
 
Dialog
DialogDialog
Dialog
 
20101106
2010110620101106
20101106
 
20101002
2010100220101002
20101002
 

Preferences

  • 2. import • http://db.tt/xNwRC2
  • 3. ( ) • Preferences – getSharedPreferenes – getPreferences • getString, getInt, getBoolean
  • 4. ( ) • Preferences • Editor – Preferences#edit() • putString, putInt, putBoolean • commit (Preferences#commit)
  • 5. UI (PreferencesActivity) • (http://bit.ly/rtf4C4) • • OptionMenu •