Mobile Development in .NET Mit Xamarin

Total Page:16

File Type:pdf, Size:1020Kb

Mobile Development in .NET Mit Xamarin Mobile Development in .NET mit Xamarin 1 Mobile Web (Hybrid) Apps Vorteil: • Weniger Aufwand • Multi-Plattform • Web-Technologien Nachteil: UX • Performance • UI Design • Gerätefunktionen 2 Plattform abstrahieren 3 Entwicklung pro Plattform 4 Xamarin Ansatz 5 Native Mobile Apps mit Xamarin 1. Bestehendes .NET Know-How 2. Mächtige Plattform und Tools (Linq, Xml, Events/Delegates, Parallel Programming, Visual Studio/TFS, …) 3. Shared Code zwischen Plattformen 6 Benötigtes Know-How .NET 7 Xamarin.iOS C# 8 Xamarin.Android C# twitterListView.setOnItemClickListener (new OnItemClickListener () { public void onItemClick (AdapterView<?> parent, View view, int position, long id) { Intent tweetDetails = new Intent (TwitterScreen.this, TweetDetailsScreen.class); tweetDetails.putExtra ("TweetID", TwitterFeed[position].ID); startActivity (tweetDetails); } }; twitterListView.ItemClick += (s, e) => { var tweetDetails = new Intent (this, typeof (TweetDetailsScreen)); tweetDetails.PutExtra ("TweetID", TwitterFeed[e.Position].ID); StartActivity (tweetDetails); }; 9 Entwicklungsumgebung OS Mac OSX Windows UI Designer Android, iOS Build Android, iOS Debug Android (Device und ARM/x86 Emulator) iOS (Device und Emulator auf Mac) 10 Kompilierung und Ausführung AOT ARM Binary ARM iOS App Xamarin.iOS Mono CLR für iOS Binary (C#,F#) Profil Assembly (Monotouch) iOS APP iOS APP iOS/Cocoa Touch Shared Code Multi-Platform (C#,F#,VB.NET) Profil Assembly IL+JIT Android.* Java.* Mono CLR für Android App Xamarin.Android Android APK (C#,F#) Profil Assembly Android (Monodroid) Android APK Dalvik Solution mit IL Code für plattform- Projekten spezifische Profile Android/Linux Kernel 11 Architektur iOS App View Controllers Storyboards/Segues Portable Class Library Table Views ViewModel Foundation/UIKit Business Logic Entities Repository/DAL Android App CloudServiceAccess Activities Intents ListViews, Adapters Android SDK 12 DEMO 13 Architektur iOS App View Controllers iOS Class Library Storyboards/Segues IPlatformDependent Portable Class Library Implementation Table Views ViewModel Foundation/UIKit Business Logic Entities Repository/DAL Android App CloudServiceAccess Activities Android Class Library Intents IPlatformDependent IPlatformDependent ListViews, Adapters Implementation NuGet Package Android SDK Pure/Advanced PCL 14 Portierbarer Code (Anteil in %) 72% 86% 46% 53% 61% 70% 44% 53% 15 Portabilität erhöhen Portable Class Libraries für Xamarin • HTTPClient • Json.Net • MvvMCross • RestSharp • CouchBase • MailKit/MimeKit • … 16 Portabilität erhöhen Xamarin Components/Plugins • Battery Status • Compass • Barcode Scanner • Device Info • File System • Notifications • Messaging • Push Notifications • Text To Speech • Contacts • Leds • Microsoft Band • … https://github.com/xamarin/XamarinComponents 17 Xamarin.Forms Eine UI Definition für alle 3 Plattformen in XAML (DataBinding) Verwendet native UI Controls Mischung möglich 18 DEMO 19 ALM Tool Chain und TFS Integration • VCS nach Wahl • Xamarin Studio hat keinen TFS- VCS Support • Builds • TFS 2015 Buildsystem • MacOS/Windows Agents • Tasks zum Builden • Issues/Board • Keine Änderung 20 Debugging Voller Funktionsumfang: Breakpoints, Watches, Callstack, … Unterstützung für: Android (Hardware & Emulator) iOS (Hardware & Emulator über Build Host) 21 Testing • Manuelles Testen • Unit Tests möglich • Xamarin Test Cloud • ~2000 verschiedene Geräte zum Testen • Nicht in Lizenz enthalten 22 Zusätzliche Tools von Xamarin • Xamarin Android Player • Remote iOS Simulator • Xamarin.Forms Previewer (alpha) • Workbooks 23 Xamarin Lizenzierung und Kosten Lizenzierung bei Visual Studio Lizenz dabei auch bei Community Edition Mac Hardware für Xamarin.iOS benötigt 24 Xamarin Nachteile Stabilität Mehraufwand bei der Architektur, damit der Code portable bleibt 25 Fazit Mobile Apps dringen in alle Bereiche vor Android und iOS als dominante Plattformen Schneller Einstieg für .NET/C# Entwickler Einarbeitung in Android/iOS SDK erforderlich Mächtige Werkzeuge und Plattformen (.NET/VS) X-Plattform Code Sharing (50-80%) Hohe Popularität in der .NET Community (Libraries!) 26 Popularität 27 Fragen? 28.
Recommended publications
  • Microsoft Band SDK
    Microsoft Band SDK SDK Documentation By using this Microsoft Band SDK, you agree to be bound by the Terms of Use. Further, if accepting on behalf of a company, you represent that you’re authorized to act on your company’s behalf. 1 Introduction and Features ............................................................................................................ 4 1.1 Multi-Platform Support ..................................................................................................................... 4 1.2 Getting Sensor Data ........................................................................................................................... 4 1.3 Creating Tiles and Sending Notifications ............................................................................................. 6 1.3.1 App Tiles ................................................................................................................................................................... 6 1.3.2 App Notifications ...................................................................................................................................................... 7 1.3.3 Haptic Notifications .................................................................................................................................................. 7 1.3.4 Band Personalization ................................................................................................................................................ 8 1.3.4.1 Me Tile ............................................................................................................................................................
    [Show full text]
  • Comparison Chart Microsoft Band – Kevin Martin Sony Smartwatch 3
    What Wearable Device Do I Buy and Why? PC Retreat 2015 What Do You Want in a Smartwatch? • Fitness Tracking • Phone notifications • Tell time • Long battery life • Style What Wearable Device • Affordability Do I Buy and Why? • More? Kevin Martin, Jonathan Lewis, Parag Joshi Comparison Chart Microsoft Band –Kevin Martin Motorola Apple Pebble Fitbit Sony Microsoft • Windows 8.1, iOS 7.1+, Android 4.3+ Moto 360 Watch Classic Charge HR SmartWatch 3 Band • Battery Life: 2 days Operating Windows Vista+, Windows 8.1+, Android 2.3+ Mac OS X 10.6+, System Android 4.3+ iOS 8+ Android 4.1+ Android 4.1+ iOS • Screen Size: 11mm x 33mm iOS 5+ iOS 6+, Android Syncs With 7.1 4.1+ • Wireless Connectivity: Bluetooth Battery Life 1.5 days 1 day 7 days 5 days 2 days 2 days Screen Size 1.56 inches 1.32 inches 1.26 inches .83 inches 1.6 inches 11mm x 33mm • Splash proof Wireless Bluetooth and Bluetooth Bluetooth and Bluetooth, NFC Bluetooth Bluetooth Connectivity WiFi and WiFi USB cable and WiFi • Built‐in fitness tracking, heart rate monitor and GPS Waterproof? Up to 30m No Up to 50m No Up to 1.5m No • Virtual keyboard Fitness Built‐in + HR + Built‐in + HR + UV + Built‐in + HR Built‐in With app Built‐in Tracking? Sleep Tracking GPS • Notifications: Alarm, Calendar Reminder, E‐mail, Facebook, Incoming Notifications? Yes Yes Yes Yes Yes Yes Call, Missed Call, Text Message, Timer, Twitter, and Weather Starting Price $300 $350 $100 $150 $180 $160 • Starting at $160 with $40 rebate Sony SmartWatch 3 – Jonathan Lewis Apple Watch – Parag Joshi • iOS 8+ • Android
    [Show full text]
  • Notice of Dispute—Kinect for Windows
    Notice of Dispute—Microsoft Software, Devices, and Services with Arbitration Agreements Microsoft is committed to resolving disputes fairly and efficiently. If you are unsatisfied with the resolution a customer service representative offers for your problem, you may notify us of your dispute by mailing this form to Microsoft. Please print legibly and complete this form. Send the completed form by U.S. mail to: Microsoft Corporation CELA Arbitration One Microsoft Way Redmond, WA 98052-6399 Keep a copy for your records. A Microsoft representative will respond within 60 days of receiving this form. If the dispute is not resolved to your satisfaction, you may begin arbitration after 60 days by submitting a Demand for Arbitration to the American Arbitration Association. You can find a Demand for Arbitration form at go.microsoft.com/fwlink/?linkid=245497. Your name Your phone number Additional number during business hours Your e-mail address Your fax number Your address: Your gamertag (if your dispute is about Xbox) Your Microsoft account (if you have one) (formerly called Windows Live ID) Your serial number (for devices) My dispute is about (check Microsoft software, device, or service): Bing Ads Program Cortana Microsoft Health, HealthVault, or Device Health App Kinect Bundled with Xbox 360 E Microsoft OneNote (Windows Store) or Onenote.com Kinect for Xbox One Kinect for Windows Microsoft Answer Desk Support Services (continued on page two) Microsoft Band Microsoft Office 2013 or 2016 Microsoft Business Applications Services Microsoft
    [Show full text]
  • Microsoft Band 2 Experience Design Guidelines
    1 Microsoft Band 2 Experience Design Guidelines Published for Third Party Version 2.0 Microsoft Band 2 2 Welcome Microsoft Band 2 Experience Design Guidelines These guidelines provide an overview of the Band, and define guidelines for the user experience for developers of third party apps. Microsoft Band 2 3 Table of Contents Introduction Glossary Interaction Patterns Typography Color Iconography Template Library Microsoft Band 2 Introduction 4 Microsoft Band 2 Direct, yet discrete. Forgiving. Experience Principals Notifications are timely, not disruptive and quick to Interactions are hyper-mobile. A nondestructive dismiss. Information passes from you to the cloud and interface tailored for the range of human motion. The experience principles should be back again in a direct, yet personal way. Positive reactions to your actions. Compensates taken into consideration when for error. creating app tiles for the Microsoft Band. Hyper-glanceable. In and out in eight. Buzz, ping, glance, swipe... Indoors or out, dark or Never break the stride of life... Glance, peek, and bright, the information most important to you is decide all in less than eight seconds — the right always at arm’s length. type and amount of information at the right time. Not a mini-phone. About you. Free your hands from the fear of missing out. Provide Knows your patterns and what you’ve done. enough information in the moment so you know if Anticipates your needs through smart and when you need to dig into your phone. It’s all recommendations and tracking. about the right amount of information, so you’ll never miss the moments that are most important to you.
    [Show full text]
  • BD2K Centers Top 5 Products
    Table of Contents TOP 5 PRODUCT CATEGORIZATION .............................. 2 ENHANCING NEURO IMAGING GENETICS PUTTING THE PRODUCTS INTO PERSPECTIVE .......... 3 THROUGH META ANALYSIS (ENIGMA) BIG DATA FOR DISCOVERY SCIENCE (BDDS) 1. ENIGMA MRI .......................................................... 28 2. ENIGMA DTI .......................................................... 28 1. Minids ........................................................................ 4 3. ENIGMA Genomics ................................................ 29 2. BDBag ....................................................................... 4 4. ENIGMA-Vis ........................................................... 29 3. Big Data Catalog ....................................................... 5 5. ENIGMA Training ................................................... 30 4. Discovery Data Dashboard ....................................... 6 5. PANTHER ................................................................. 6 A COMMUNITY EFFORT TO TRANSLATE PROTEIN DATA TO KNOWLEDGE (HEARTBD2K) CENTER FOR BIG DATA IN TRANSLATIONAL GENOMICS (BDTG) 1. AZTec ..................................................................... 31 2. OmicsDI .................................................................. 31 1. Toil ............................................................................ 8 3. MyGene.info ........................................................... 32 2. Variation Graphs ....................................................... 8 4. Sage Synapse .......................................................
    [Show full text]
  • Microsoft Corporation, (Nasdaq: MSFT) Microsoft Band and Microsoft Health to Ring the Nasdaq Stock Market Opening Bell
    Microsoft Corporation, (Nasdaq: MSFT) Microsoft Band and Microsoft Health to Ring The Nasdaq Stock Market Opening Bell Nasdaq Celebrates 5th Annual "Fit Week" to Kick Off Healthy Living in the New Year ADVISORY, Dec. 31, 2015 (GLOBE NEWSWIRE) -- What: Microsoft Corporation, (Nasdaq:MSFT) Microsoft Band and Microsoft Health will visit the Nasdaq MarketSite in Times Square. Microsoft Band is the first device powered by Microsoft Health that helps achieve wellness goals by tracking heart rate, steps, calorie burn, and sleep quality. The visit will kick off Nasdaq's 5th annual "Fit Week" - from January 4th to January 8th, 2016 - featuring companies that help individuals lead healthier lifestyles during bell ceremonies. In honor of the occasion, Zulfi Alam, General Manager, Personal Devices, Microsoft will ring the Opening Bell. Joining Microsoft to ring the bell include the following partners: Gold's Gym, Lose it!, Runkeeper, TaylorMade and Jenna Wolfe, lifestyle and fitness expert. In addition to ringing the Opening or Closing Bell during "Fit Week", participating companies will be featured on Nasdaq's Facebook, Twitter and Instagram pages where they will provide customized tips for maintaining a healthy lifestyle in 2016. To find photos from Nasdaq "Fit Week" 2015 and for upcoming photos from "Fit Week" 2016, please visit: http://www.nasdaq.com/marketsite/fitweek1102/fitweek2016.html Where: Nasdaq MarketSite - 4 Times Square - 43rd & Broadway - Broadcast Studio When: Monday, January 4, 2016 - 9:15 a.m. to 9:30 a.m. ET Microsoft Corporation Media Contact: Marisa Lalli (212) 551-4832 [email protected] Nasdaq MarketSite: Emily Pan (646) 441-5120 [email protected] Feed Information: Fiber Line (Encompass Waterfront): 4463 Gal 3C/06C 95.05 degrees West 18 mhz Lower DL 3811 Vertical FEC 3/4 SR 13.235 DR 18.295411 MOD 4:2:0 DVBS QPSK Social Media: For multimedia features such as exclusive content, photo postings, status updates and video of bell ceremonies please visit our Facebook page at: http://www.facebook.com/NASDAQ.
    [Show full text]
  • Software Development for Mobile Computing, the Internet of Things and Wearable Devices: Inspecting the Past to Understand the Future
    Proceedings of the 52nd Hawaii International Conference on System Sciences | 2019 Software Development for Mobile Computing, the Internet of Things and Wearable Devices: Inspecting the Past to Understand the Future Tor-Morten Grønli Andreas Biørn-Hansen Tim A. Majchrzak Kristiania University College, Kristiania University College, University of Agder, Dep. Technology, Oslo, Norway Dep. Technology, Oslo, Norway Kristiansand, Norway [email protected] [email protected] [email protected] Abstract texting a friend on the phone, and over time as the conversation is flowing s/he is on the move, and begin Currently a convergence in software development to consume the messages on a wearable device such as for mobile computing (including mobile devices and a smartwatch whilst moving. Back at the office s/he special technology such as wearables) and the Internet will move over to use the stationary computer as input of Things (IoT) can be observed. Devices from the device. Extending further, voice recognition can be fields are becoming part of a joint ecosystem and enabled by the IoT device residing on the office desk share the same infrastructure. Moreover, development and complete the multi-dimensional interaction. processes have changed and user requirements have Mobile technology and IoT form a multidisciplinary become very heterogeneous. We have been studying field where sensing devices with communication this development for a while, also by offering the fitting capabilities that can be applied to ordinary objects HICSS minitrack. In this article, we look into the in order to make the object “smart”. They add a past of software development for mobile devices, in the whole new dimension of content to the current Internet context of IoT, and for wearables.
    [Show full text]
  • Material Safety Data Sheets (MSDS)/Safety Data Sheets (SDS) Are Required by Various National and International Occupational Worker Safety Regulations
    Product Data Sheet Section I – Product and Company Information Product: Lithium ion and Lithium ion polymer batteries Manufacturer: Models: See Microsoft Product Battery Information Table, Section 14 Microsoft Corporation Effective Date: January 10, 2020 One Microsoft Way Version: 2020A Redmond, WA 98052-6399 Tel 425 882 8080 Section II – Composition Information Not chemically dangerous during normal use in accordance with Microsoft recommendations as stated in the user manuals or other similar documentation. Exposure to hazardous chemicals is not expected with normal handling and use. In particular, the cell or battery should not be opened or burned. Section III – Hazards Identification Emergency Overview: Do not open or disassemble cells or batteries or expose them to fire or open flame. Do not puncture or deform. Cells and batteries present a hazard only if mishandled in a way that causes damage to the cell or battery or compromises their integrity. Primary Routes of Exposure: Risk of exposure to hazardous materials will only occur if the cell or battery is physically, thermally or electrically abused to the extent that the integrity of the cell or battery is compromised. In this case, exposure to the electrolyte can occur through ingestion, inhalation, eye contact and skin contact. Potential Health Effects: If the battery or cell has been damaged or ruptured, the electrolyte solution, which is corrosive, could be released and cause burns to the eyes, skin or respiratory tract. Ingestion of the electrolyte can cause serious burns of the gastrointestinal tract. Section IV – First Aid Measures If you get electrolyte in your eyes, flush with water for 15 minutes without rubbing and immediately contact a physician.
    [Show full text]
  • Seattle Sounders Score with SQL Server and Fitness-Tracking Technology 21 November 2014, by Athima Chansanchai
    Seattle Sounders score with SQL Server and fitness-tracking technology 21 November 2014, by Athima Chansanchai "SQL Server is the place where all the data from different devices meshes together. It provides us a holistic view of the data and enables us to draw powerful insights from it," says Ravi Ramineni, a performance analyst with the Sounders who built the SQL Server database. He's responsible for data collection, data integration, modeling and analysis of the team's performance data from practices and matches. By the time the Seattle Sounders head onto the field, they've already kicked, ran and sweated thousands of hours of training. A big part of that Polar heart rate monitors measure how much physical fitness is planned, tracked and tweaked by staff output a player uses and how much work they do, while whose job is to help the technology translate to Omegawave gives coaches each athlete’s fatigue level. better performance. From the SQL Server database, Ramineni can easily pull stats, as well as create data The Emerald City's football fans aren't limited to visualizations and other analytics that then go to those cheering for the Seattle Seahawks and the the coaching staff so they can make data-driven Washington Huskies. Here, footballers also include decisions. That could mean pulling players before the soccer heroes of the Seattle Sounders FC, injuries take them out. Or, it could also lead to who are heading into Major League Soccer's adjustments based on different positions, building Western Conference Championship this weekend strength and speed using a variety of workouts and with LA Galaxy.
    [Show full text]
  • Microsoft Corporation (“Microsoft”) Appreciates the Opportunity to Provide Comments to the U.S
    Microsoft’s Response to Request for Comment Department of Commerce, National Telecommunications and Information Administration The Benefits, Challenges, and Potential Roles for Government in Fostering the Advancement of the Internet of Things I. Introduction Microsoft Corporation (“Microsoft”) appreciates the opportunity to provide comments to the U.S. Department of Commerce (“Commerce”) and specifically the National Telecommunications and Information Administration (“NTIA”) in response to its request for comments on the benefits, challenges, and potential roles for the government in fostering the advancement of the Internet of Things (“IoT”). As a global technology company, Microsoft is a provider of the hardware, software, and cloud services that power IoT. Through the technological phenomenon of IoT, real objects can now interact with software code and perform actions that improve the daily lives of consumers, enable greater efficiency in enterprises, and empower new approaches to governmental functions.1 At Microsoft, we help our customers connect, monitor, and manage millions of devices and related assets, and we power the cloud services that help organizations unlock the value of new business models that are possible only through the combination of connected devices, machine learning, and big data analytics. The broad diversity of our offerings gives us a unique—and, we believe, uniquely balanced—perspective on the issues raised by NTIA. Microsoft commends NTIA for opening up these technology policy questions from an interdisciplinary
    [Show full text]
  • REV TECNOLOGIA 19FEB : Tecnologia : 33 : PáGina 33 PUBLI
    TTecnologíaecnología elEconomista Revista mensual 17 de junio de 2015 | Nº 24 Apple y Google Amistades peligrosas de la banca | P8 ‘Drones’ Requisitos legales El icono de para tocar el cielo | P14 Fever Silicon Valley La nueva ‘app’ imprescindible | P24 Elon Musk, padre de Tesla, .Tuenti PayPal y SpaceX, eclipsa a El hijo de Telefónica tiene su ‘punto’ | P30 los gurús de las ‘puntocom’ | P4 No lo pierdan de vista Edita: Editorial Ecoprensa S.A. PresidentedeEcoprensa: Alfonso de Salas Vicepresidente: Gregorio Peña Director Gerente: Julio Gutiérrez Director Comercial: Juan Pagán Relaciones Institucionales: Pilar Rodríguez Subdirector de RRII: Juan Carlos Serrano Director de elEconomista: Amador G. Ayora Coordinadora de Revistas Digitales: Virginia Gonzalvo Director de Tecnología: Antonio Lorenzo (@antoniolorenzo) Diseño: Pedro Vicente y Elena Herrera Fotografía: Pepo García Infografía: Nerea Bilbao Redacción: Carlos Bueno, Fabián Cabello y Cruz Aranguren Síguenos en @eETecnologia [email protected] Un puente construido con una impresora 3D Las impresoras 3D sirven para aquello que se quiera hacer, sin más límites que la imaginación. Con semejante receta, la empresa Heijmans se ha atrevido con la construcción -¿o debería llamarse la impresión?- de un puente de acero. La osadía se está realizando estos días en un gran hangar en Amsterdam. EE Índice 4 8 14 24 28 30 Portada Tendencias ‘Drones’ Entrevista Tribuna Móviles Así es el nuevo icono de Apple y Google ya actúan ¿Hay que pedir permiso Pep Gómez, fundador de Otra aplicación posible del Tuenti se reinventa para Silicon Valley: Elon Musk, el en muchos aspectos como para poder volar un ‘dron’? Fever: “En España nos lo ‘big data’: adivinar quién ofrecer una nueva carta de fundador de Space X, Tesla si fueran bancos.
    [Show full text]
  • Internal and External Policies Or Requirements
    Tel: 314-889-1100 101 S Hanley Rd, #800 Fax: 314-889-1101 St. Louis, MO 63105 www.bdo.com REPORT OF INDEPENDENT ACCOUNTANT To the Management of Microsoft Public Key Infrastructure (“PKI”) Services: We have examined Microsoft PKI Services’ management assertion that for its Certification Authority (“CA”) operations in the United States of America and territories, throughout the period May 1, 2019 to April 30, 2020 for its root, issuing, and intermediate CAs enumerated in Attachment B, Microsoft PKI Services has: • disclosed its business, key lifecycle management, certificate lifecycle management, and CA environmental control practices in in the applicable versions of its Microsoft PKI Services Certificate Policy and Certification Practice Statement enumerated in Attachment A • maintained effective controls to provide reasonable assurance that: o Microsoft PKI Services’ Certification Practice Statement is consistent with its Certificate Policy; and o Microsoft PKI Services provides its services in accordance with its Certificate Policy and Certification Practice Statement • maintained effective controls to provide reasonable assurance that: o the integrity of keys and certificates it manages is established and protected throughout their lifecycles; o subscriber information is properly authenticated; and o subordinate CA certificate requests are accurate, authenticated, and approved • maintained effective controls to provide reasonable assurance that: o logical and physical access to CA systems and data is restricted to authorized individuals; o the continuity of key and certificate management operations is maintained; and o CA systems development, maintenance, and operations are properly authorized and performed to maintain CA systems integrity based on the WebTrust Principles and Criteria for Certification Authorities v2.1.
    [Show full text]