2. iOS Android
Language Objective-C/C/C++ Java/C/C++ & XML
Model Core Data ContentProvider
View Interface Builder XML
Controller UIViewController Activity/Fragment
Display size 320x480 / 640x960 /768x1024 480x800 and so on…
Presented by dommy on 2012/5/11 2
3. iOS Android
Base UIApplication Application
Controller UIViewController Activity/Fragment
Event Emitter Target Action/Responder Chain Event Listener i.e. onClick()
Data Saving NSUserDefaults / SQLite SharedPreferences / SQLite
Multi Thread NSThread Thread/AsyncTask/Service
Internationalization NSLocalizedString Resource files
GPS CoreLocation LocationManager
for MapView, use Google SDK
Accelerometer UIAccelerometer SensorManager
Local Notification UILocalNotification NotificationManager
Remote Push Apple Push Notifiation Service C2DM (external package)
Notification com.google.android.c2dm
Presented by dommy on 2012/5/11 3
4. instantiation release
Not on memory -dealloc
-initWithNibName: Bundle:
-loadView -viewDidUnload
-viewDidLoad Invisible
-viewWillAppear: -viewDidDisappear:
Visible
-viewDidAppear: -viewWillDisappear:
タッチイベント受付
Presented by dommy on 2012/5/11 4
5. instantiation release
onAtach() onDetach()
Not on memory
onCreate() onDestroy()
fragmentが、
back stackにある時
Invisible
onCreateView() onDestroyView()
Visible
onStart() onStop
タッチイベント受付
onResume() onPause()
Presented by dommy on 2012/5/11 5
6. RelativeLayout
TextView
UINavigationBar
TextView
TextView
UITableView
TextView
TextView
LinearLayout
このViewイメージの作成に、
それぞれ、何行のテキストを書くでしょうか?
Presented by dommy on 2012/5/11 6
7. iPhoneは0行
Androidは39行 と、思いきや
• style.xml
• colors.xml
• drawable.xml
などで、約500行ほどの作業になる。
Presented by dommy on 2012/5/11 7