1 / 30

Building Connected Android Apps

http://chrisrisner.com @ chrisrisner. Building Connected Android Apps. Chris Risner Technical Evangelist Microsoft. Let’s build an app! How Microsoft got here? Mobile Services Features and demos Win a prize Questions. What we’re going to talk about. Let’s build an app!.

kaili
Download Presentation

Building Connected Android Apps

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. http://chrisrisner.com @chrisrisner Building Connected Android Apps Chris Risner Technical Evangelist Microsoft

  2. Let’s build an app! • How Microsoft got here? • Mobile Services • Features and demos • Win a prize • Questions What we’re going to talk about

  3. Let’s build an app!

  4. How Microsoft got here?

  5. What we had Storage Identity Cloud services

  6. What we needed Cross Platform Features

  7. What we made

  8. What is Windows Azure Mobile Services? Auth Data Notifications Logging & Diag Server Logic Scheduler Scale

  9. Getting Starteda backend for your mobile app in minutes Demo

  10. Structured Storage Structured Storage with SQL Database Same DB – multiple Mobile Services AppX.Todoitem AppY.Todoitem Manage data in Portal, SQL Portal SQL Management Studio REST API CLI Tools

  11. JSON to SQL type mappings

  12. Server Logic Automatic REST API generated for storage Dynamic Schema on/off Ability to customize server logic that intercepts table requests

  13. Server Logic Supported Modules + Globals request console push.* tables mssql statusCodes azure store (pusher, sendgrid, twilio, etc) mssql.query('select top 1 * from statusupdates', { success: function(results) { console.log(results); } } );

  14. Server Logicadding server logic on CRUD operations Demo

  15. Push Notification Lifecycle Overview Mobile Services Android Register for push notifications Send Registration ID to Mobile Service Push from server side scripts App (2) (3) (1) GCM (3)

  16. Push Notifications Demo

  17. User Auth

  18. AuthData and Scripts Table level permissions for each CRUD operation Everyone Anyone with the Application Key Only Authenticated Users Only Scripts and Admins More granular control with server side scripts user.level: {admin, authenticated, anonymous} user.userId: id or undefined if not authenticated

  19. Adding Authenticationintegrating with Google Demo

  20. Command Line Tools Create services Delete services Create (with auth options), update, delete, list tables Upload, delete, download, list scripts Get configuration

  21. Using the CLI Demo

  22. Scheduler Execute scripts on a Schedule by Minutes by Hours by Days By Months Execute scripts on Demand Examples Periodic purge of old data Poll and aggregate from 3rd party (Twitter, RSS, others) Process/resize images Schedule sending push notifications for a given time of day

  23. Scheduling a taskAdding Todo Items Demo

  24. Diagnostics, Logging and Scale Diagnostics API calls CPU Time Data Out Logging console.error(…) console.log(…) … Scale - Compute Scale out instance count Scale up VM size Scale - Storage Scale out mobile service tenant to dedicated SQL DB Scale up SQL DB

  25. Diagnostics, Logging, Scale Demo

  26. Pricing Example: $5/ Month Unlimited data in = <165MB daily out 100MB SQL Database 10 x Mobile Services on shared instances • How? • 10 FREE mobile services on shared instance • Includes 165MB/day of FREE data out from API calls • Cost - All services sharing a 100MB DB is $5 USD / Month • Use Pricing Calculator to Estimate your costs Note: Free data out is per subscription, not per mobile service

  27. Summary Auth Data Notifications Logging & Diag Server Logic Scheduler Scale

  28. e-mail: chrisner@microsoft.com • Complete the Quick Start challenge • 1 extra entry for showing use of Auth • 3 extra entries for showing use of push • Winner announced on 4/18 Win a JamBox

  29. The QuickStart Challenge Sign up for the free trial at www.windowsazure.com/android Complete the Mobile Services QuickStart Send me an image (including your account e-mail in the corner) Entries must be submitted by Thursday 1pm PST E-mail chrisner@microsoft.com

  30. Useful Resources Get a Windows Azure Free Trial Account http://www.windowsazure.com/ Learn more Find videos, tutorials and more at https://www.windowsazure.com/android Help with Mobile Services Q&A Forum: Windows Azure Mobile Services Forum Feature Rqst: Windows Azure Mobile Services UserVoice Feedback: mobileservices@microsoft.com Twitter: @chrisrisner Presentations, demos, hands on labs Windows Azure Training Kit: Download here

More Related