Your SlideShare is downloading. ×
Android ios wp7
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Android ios wp7

1,691

Published on

Published in: Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,691
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
112
Comments
0
Likes
4
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • 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.
  • http://www.slideshare.net/eljefe/jquery-mobile-for-fun-and-profithttp://www.slideshare.net/davyjones/html5-is-the-future-of-mobile-phonegap-takes-you-there-todayhttp://www.phonegap.com/apps
  • http://www.redmondpie.com/android-2.2-vs-iphone-4.0-vs-windows-phone-7/
  • 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://www.redmondpie.com/android-2.2-vs-iphone-4.0-vs-windows-phone-7/
  • 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/
  • http://zone.ni.com/devzone/cda/tut/p/id/6424
  • http://zone.ni.com/devzone/cda/tut/p/id/6424
  • http://zone.ni.com/devzone/cda/tut/p/id/6424
  • Demo Video
  • http://developer.apple.com/library/mac/#documentation/cocoa/conceptual/GarbageCollection/Introduction.html#//apple_ref/doc/uid/TP30001223-CJBGIAGFhttp://developer.android.com/resources/articles/track-mem.html
  • http://developer.android.com/reference/android/content/Intent.html (Android Intent)http://sudheerkovalam.wordpress.com/2010/08/14/windows-phone-7-launcher-and-choosers-part-2/http://sudheerkovalam.wordpress.com/2010/08/06/96/
  • Bật Visual Studio và Eclipse lên để demo
  • http://chriskoenig.net/2010/10/30/odata-v2-and-windows-phone-7/http://odata.codeplex.com/http://blogs.msdn.com/b/astoriateam/archive/2010/10/28/data-services-client-for-win-phone-7-now-available.aspx
  • Transcript

    • 1. So sánh phát triểnứng dụng trên iOS, Android và Windows Phone 7
      cuong@microsoft.com
    • 2. Tại sao không viết một app để chạy được trên cả nhiều hệ điều hành: iOS, Android và Windows Phone 7, …
    • 3. Lợi:
      • Tăng xác suất tải về trên cả 3 hệ điều hành.
      • 4. Tăng mức độ phổ biến – khả năng tương thích. Hài lòng các fan của iOS lẫn Android lẫn Windows Phone.
      • 5. Tận dụng lại ý tưởng hay, tài nguyên (hình ảnh, video, âm thanh, mã logic…)
      Khó khăn:
      • Cần thành thạo cả 3 OS
      • 6. Time to market có thể giảm
      • 7. Tối ưu cho từng OS là khác nhau
    • Có bao nhiêu cách ?
      HTML 5- CSS3-JavaScript: PhoneGap, jQueryMobile, jQTouch, Sencha Touch,….
      Appcelerator’s Titanium Mobile: converts JavaScript to symbolic files then compile to native apps
      Porting apps: reuse code/ resource , modify code to adapt to each platform.
    • 8. Source : PhoneGap
    • 9. Source : PhoneGap
    • 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
    • 16.
    • 17. Phát triển ứng dụng cho WP7
      • High performance game framework
      • 18. Rapid creation of multi-screen 2D and 3D games
      • 19. Rich content pipeline
      • 20. Mature, robust, widely adopted technology
      • 21. Xbox 360, Windows, and Zune
      • 22. Modern application UI framework
      • 23. Rapid creation of visually stunning apps
      • 24. Metro-themed UI controls
      • 25. HTML/JavaScript
      • 26. 500,000 developers spanning Windows and web
    • iOS, Android và Windows phone 7
    • 27.
    • 28. Objective-C Apps
      HTML 5, CSS, JavaScript Apps
      Cocoa Touch UIKit, Animation, Multitasking, Gesture Recognizers, PushNotification
      MEDIA CoreGraphics, Text, OpenGL ES, Core Animation, AVFoundation, Core Audio, video
      CORE Services string, collection, network, contact, GPS, compass, accelerometer, gyroscope
      CORE OS kernel, file, network, security, power, device drivers
    • 29.
    • 30.
    • 31.
    • 32.
    • 33.
    • 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
    • 39. API
      API
      http://wp7mapping.interoperabilitybridges.com
    • 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ề
    • 41. App.xaml
      Frame / Page
      Controls
      Launcher
      Chooser
      Notification
      XML, LINQ, OData
    • 42.
    • 43. System Tray (title, progress bar)
      Standard Controls
      Customed Controls
      3rd Party Controls
      Page
      Application Bar (menu button)
    • 44. DEMO một số ứng dụng WP7
    • 45. UI Controls
      http://www.codeproject.com/KB/windows-phone-7/CustomGauges.aspx
      http://www.microsoft.com/events/series/isv.aspx?tab=Videos&seriesid=127&webcastid=14681 (Control supported va unsupported in WP7)
      Telerik
      http://www.infragistics.com/
      Vs Android Widgethttp://developer.android.com/guide/topics/ui/index.html
    • 46. Communication Service
      Location aware service
      Push notification
      SOAP / REST / WCF / OData
    • 47. Odata – WCF Client
    • 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

    ×