Upload
chanhyeong-lee
View
36
Download
1
Embed Size (px)
Citation preview
Next����������� ������������������ Time…⋯
•Fragment����������� ������������������ coding����������� ������������������
•CustomView
Build����������� ������������������ 2-Pane����������� ������������������ Table����������� ������������������ UI
Build����������� ������������������ 2-Pane����������� ������������������ Table����������� ������������������ UI
•How����������� ������������������ to����������� ������������������ build����������� ������������������ up����������� ������������������ the����������� ������������������ two-pane����������� ������������������ table����������� ������������������ UI����������� ������������������
•Create����������� ������������������ a����������� ������������������ new����������� ������������������ layout����������� ������������������ sw600dp����������� ������������������ folder����������� ������������������ and����������� ������������������ new����������� ������������������ file����������� ������������������ called����������� ������������������ activity_main.xml
Handle����������� ������������������ List����������� ������������������ Item����������� ������������������ Click
Handle����������� ������������������ List����������� ������������������ Item����������� ������������������ Click
•Use����������� ������������������ callback����������� ������������������ to����������� ������������������ notify����������� ������������������ activity����������� ������������������ of����������� ������������������ list����������� ������������������ item����������� ������������������ selection����������� ������������������
•on����������� ������������������ phone,����������� ������������������ launch����������� ������������������ DetailActivity����������� ������������������
•on����������� ������������������ Tablet,����������� ������������������ launch����������� ������������������ DatailFragment
Activated����������� ������������������ List����������� ������������������ item����������� ������������������ Style
•StateListDrawable����������� ������������������
•touch_selector.xml����������� ������������������ ->����������� ������������������ 정의����������� ������������������
•list_item_forecast.xml����������� ������������������ ->����������� ������������������ 적용����������� ������������������
•fragment_main.xml����������� ������������������ ->����������� ������������������ 선택����������� ������������������ 모드
Lesson����������� ������������������ 5����������� ������������������ Recap
•How����������� ������������������ to����������� ������������������ create����������� ������������������ rich����������� ������������������ UI����������� ������������������
•How����������� ������������������ to����������� ������������������ create����������� ������������������ custom����������� ������������������ view
Lesson����������� ������������������ 6.����������� ������������������ Services����������� ������������������ and����������� ������������������ Notifications
도우미����������� ������������������ 이찬형
Intro����������� ������������������ to����������� ������������������ Lesson����������� ������������������ 6
•How����������� ������������������ it����������� ������������������ should����������� ������������������ operate����������� ������������������ when����������� ������������������ It’s����������� ������������������ not����������� ������������������ in����������� ������������������ the����������� ������������������ foreground����������� ������������������
•Service����������� ������������������
•efficient����������� ������������������ data����������� ������������������ transfers����������� ������������������ using����������� ������������������ sync����������� ������������������ adapters����������� ������������������ and����������� ������������������ Google����������� ������������������ Cloud����������� ������������������ messaging
Sunshine����������� ������������������ in����������� ������������������ the����������� ������������������ Background
•The����������� ������������������ AsyncTask����������� ������������������ is����������� ������������������ not����������� ������������������ tied����������� ������������������ to����������� ������������������ the����������� ������������������ activity����������� ������������������ life����������� ������������������ cycle����������� ������������������
•If����������� ������������������ you����������� ������������������ rotate����������� ������������������ your����������� ������������������ phone,����������� ������������������ the����������� ������������������ behavior����������� ������������������ is����������� ������������������ to����������� ������������������ destroy����������� ������������������ your����������� ������������������ activity����������� ������������������ and����������� ������������������ instantiate����������� ������������������ a����������� ������������������ new����������� ������������������ one.
App����������� ������������������ Lifecycle����������� ������������������ and����������� ������������������ Service
•with����������� ������������������ invisible����������� ������������������ state,����������� ������������������ downloading����������� ������������������ files,����������� ������������������ uploading����������� ������������������ photos����������� ������������������ or����������� ������������������ playing����������� ������������������ music����������� ������������������
•Services����������� ������������������ -����������� ������������������ no����������� ������������������ user����������� ������������������ interface,����������� ������������������ a����������� ������������������ higher����������� ������������������ priority����������� ������������������ than����������� ������������������ background����������� ������������������ activity
Using����������� ������������������ Services
•SunshineService����������� ������������������ -����������� ������������������ FetchWeatherTask����������� ������������������
•AndroidManifest.xml����������� ������������������
•updateWeather����������� ������������������ -����������� ������������������ startService()
•Service����������� ������������������ still����������� ������������������ doesn’t����������� ������������������ wake����������� ������������������ itself����������� ������������������ up����������� ������������������
•BroadcastReceiver����������� ������������������
•AndroidManifest.xml����������� ������������������
•AlarmManager
Using����������� ������������������ Alarms
•less����������� ������������������ Data,����������� ������������������ less����������� ������������������ often
Transferring����������� ������������������ Data����������� ������������������ Efficiently
Data����������� ������������������ transfer����������� ������������������ Best����������� ������������������ Practices
•single����������� ������������������ connection����������� ������������������
•single����������� ������������������ burst����������� ������������������
•full����������� ������������������ capacity
Introducing����������� ������������������ SyncAdapters
•Schedules����������� ������������������ your����������� ������������������ network����������� ������������������ jobs����������� ������������������ with����������� ������������������ other����������� ������������������ apps����������� ������������������
•Has����������� ������������������ logic����������� ������������������ to����������� ������������������ retry����������� ������������������ your����������� ������������������ request
Implementing����������� ������������������ a����������� ������������������ SyncAdapter
•AndroidManifest.xml����������� ������������������ -����������� ������������������ 선언,����������� ������������������ 퍼미션����������� ������������������
•Authenticator����������� ������������������
•AuthenticatorService����������� ������������������
•SyncAdaptor����������� ������������������
•SyncAdaptorService
Google����������� ������������������ Cloud����������� ������������������ messaging
•Sync����������� ������������������ per����������� ������������������ a����������� ������������������ click����������� ������������������ ->����������� ������������������ periodic����������� ������������������ sync
Notifications
•string.xml����������� ������������������ -����������� ������������������ format����������� ������������������
•SunshineSyncAdapter����������� ������������������ -����������� ������������������ notifyWeather����������� ������������������
•etc����������� ������������������ -����������� ������������������ noti����������� ������������������ on/off,����������� ������������������ delete����������� ������������������ old����������� ������������������ data,����������� ������������������ update����������� ������������������ map����������� ������������������ location
Lesson����������� ������������������ 6����������� ������������������ Recap
•How����������� ������������������ to����������� ������������������ use����������� ������������������ services����������� ������������������ and����������� ������������������ think����������� ������������������ adapters����������� ������������������
•Creating����������� ������������������ rich����������� ������������������ notification