10. JavaScript UI API maps to native UI components: NavBar, Tabbar, Toolbar, Menu, Dialogs, Alert, Button, List… Phone API maps to phone features: Geo, Accelerometer, Maps, Sound, Video, Database, File IO, Network… JavaScript HTML, JavaScript, CSS UI + Logic UI + Logic Phone API Phone API UI API UI API JavaScript to Objective-C bridge JavaScript to Java bridge iOS Objective-C Android Java Native iOS App Native Android App
11. Cách cổ điển porting app vẫn cần thiết bởi vì: 1- Tối ưu cao nhất cho từng hệ điều hành – thiết bị cụ thể. 2- Cần tối ưu tốc độ ứng dụng. 3- Cần nâng cao trải nghiệm giao diện người dùng.
12.
13. Trước khi so sánh iOS, Android và Windows phone 7….Hãy xem Windows phone 7 như thế nào.
14. Cấu hình phần cứng Phân giải màn hình 480x800 QVGA 320x480 HVGA Multimedia Common detailed specs Codec acceleration Cảm ứng đa điểm 4 or more contact points Bộ nhớ 256MB RAM or more 8GB Flash or more Cảm biến A-GPS, Accelerometer, Compass GPU DirectX 9 acceleration CPU ARMv7 Cortex/Scorpion or better 1G Chụp ảnh 5 mega pixels or more Dedicated camera button Nút bấm vật lý Start, Search, Back
15. Windows PhoneHardware Common Hardware Elements Consistent Platform Quality Focus 800 Microsoft chuẩn hoá yêu cầu phần cứng: 1- Tăng chất lượng ứng dụng 2- Giảm tối đa lỗi không tương thích và thời gian kiểm thử Phiên bản Windows Phone 7.5 “Mango” kế tiếp có thể khác ! 480
34. Multi-tasking on single core Background Foreground App 1 App Service Internal Service 1 Internal Service 2 Operating System CPU Core
35. Multi-tasking on dual core Background Foreground App 1 App Service Internal Service 1 Internal Service 2 Operating System CPU Core 1 CPU Core 2
36. Multi-threading Foreground Background User Interface Data Processing Complextask Internal Service 1 Internal Service 2 Operating System CPU Core 1 CPU Core 2
37. Windows Phone 7 (2010) không hỗ trợ ứng dụng hãng thứ 3 multi tasking.Windows Phone 7 (Mango) hỗ trợ multi tasking.
38. Garbage Collection Disable by default Enable by compiler switch When GC is not available alloc/release/aurorelease CFRetain/CFRelease Automatic by default Rely too much on GC will deperformance your app
40. Lập trình UI Android khá giống WP7 Vẽ giao diện bằng XML hoặc tạo động bằng code. Hứng sự kiện trong XML hoặc trong code Di chuyển giữa các trang Menu bar – Application bar Cách kích hoạt các tác vụ và nhận giá trị trả về
48. Tham khảo http://blog.radvision.com/voipsurvivor/2010/10/07/ios-android-windows-phone-7-and-the-great-changes-in-the-operating-systems-market/ http://www.slideshare.net/dtmilano/android-development-tutorial-v3 http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx (WP7 Code Example) http://create.msdn.com/en-US/education/catalog/ (WP7 Content Example) http://www.pcworld.com.vn/articles/san-pham/phan-mem/2011/03/1224409/cuoc-chien-he-dieu-hanh-di-dong-android-ios-va-windows-phone/ (Cuộc chiến hệ điều hành di động: Android, iOS và Windows Phone) http://windowsphone.interoperabilitybridges.com/(WP7 cho iPhone developers) http://channel9.msdn.com/posts/Minh-Tran-TranCreative-Experience-developing-for-Windows-Phone-7 http://www.msdev.com/Default.aspx
Notas do Editor
Dự kiến trình bày trong 40 phút1- Tại sao phát triển multiplatform?2- Các cách khác nhau phát triển ứng dụng đa nền tảng. Ưu và nhược điểm của việc lập trình ứng dụng bằng HTML5, JavaScript.3- Cần phải hiểu rõ sự tương đồng và những khác biệt của 3 hệ điều hành iOS, Android và Windows Phone 74- Giới thiệu sơ qua Windows Phone 7 trước khi so sánh.
Core OS. This level contains the kernel, the file system, networking infrastructure, security, power management, and a number of device drivers. It also has the libSystem library, which supports the POSIX/BSD 4.4/C99 API specifications and includes system-level APIs for many services.Core Services. The frameworks in this layer provide core services, such as string manipulation, collection management, networking, URL utilities, contact management, and preferences. They also provide services based on hardware features of a device, such as the GPS, compass, accelerometer, and gyroscope. Examples of frameworks in this layer are Core Location, Core Motion, and System Configuration.This layer includes both Foundation and Core Foundation, frameworks that provide abstractions for common data types such as strings and collections. The Core Frameworks layer also contains Core Data, a framework for object graph management and object persistence.Media. The frameworks and services in this layer depend on the Core Services layer and provide graphical and multimedia services to the Cocoa Touch layer. They include Core Graphics, Core Text, OpenGL ES, Core Animation, AVFoundation, Core Audio, and video playback.Cocoa Touch. The frameworks in this layer directly support applications based in iOS. They include frameworks such as Game Kit, Map Kit, and iAd.
http://dotnet.dzone.com/articles/scheduling-tasks-windows-phonehttp://silverlighthack.com/category/MultiThreading.aspxhttp://stackoverflow.com/questions/3197335/android-restful-api-serviceWP7 không cho phép ứng dụng hãng thứ 3 phát triển chạy background. Ứng dụng hãng thứ 3 phát triển có thể chạy Multithread khi và chỉ khi nó chạy ở fore ground.Android có class Async Task Sử dụng Google Map cho Windows Phone 7http://www.xda-developers.com/windows-mobile/gmappro-for-windows-phone-7/WP: isolated storage, http://winphone7db.codeplex.com/ (MS chhttp://msdn.microsoft.com/en-us/gg266494WP7 dev can use SQLite porting to C#http://code.google.com/p/csharp-sqlite/http://wp7sqlite.codeplex.com/