Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 18 Microsoft’s Approach 1 –.NET Mobile Framework Rob Pooley.

Slides:



Advertisements
Similar presentations
Using.NET Platform Note: Most of the material of these slides have been taken & extended from Nakov’s excellent overview for.NET framework, MSDN and wikipedia.
Advertisements

.NET Framework Overview Pingping Ma Nov 16 th, 2006.
.NET Technology.
CIM2564 Introduction to Development Frameworks 1 Overview of a Development Framework Topic 1.
Introduction to.NET What is.NET?  A vision Web sites will be joined by Web services New smart devices will join the PC User interfaces will become more.
.Net Compact Framework. Microsoft.Net is often referred as Plateform for web services But.net vision is more than web services – It talks about how people.
Overview of the.NET Framework. What is the.NET Framework A new computing platform designed to simplify application development A consistent object-oriented.
Module 1: Overview of the Microsoft.NET Framework.
Introducing the Common Language Runtime for.NET. The Common Language Runtime The Common Language Runtime (CLR) The Common Language Runtime (CLR) –Execution.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Introducing the Common Language Runtime. The Common Language Runtime The Common Language Runtime (CLR) The Common Language Runtime (CLR) –Execution engine.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Tahir Nawaz Visual Programming C# Week 2. What is C#? C# (pronounced "C sharp") is an object- oriented language that is used to build applications for.
Platforms and tools for Web Services and Mobile Applications Introduction to C# Bent Thomsen Aalborg University 3rd and 4th of June 2004.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 19 Microsoft’s Approach 1 –.NET Mobile Framework part 2 Rob.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
Rajeswari Indupuri Introduction to.NET Framework.
Microsoft Visual Basic 2012 CHAPTER ONE Introduction to Visual Basic 2012 Programming.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
A Free sample background from © 2001 By Default!Slide 1.NET Overview BY: Pinkesh Desai.
CSCI 3327 Visual Basic Chapter 1: Introduction to Visual Basic
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
1 Introduction to.NET Framework. 2.NETFramework Internet COM+ Orchestration Orchestration Windows.NET Enterprise ServersBuildingBlockServices Visual Studio.NET.
Introduction to .Net Framework
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
ASP.NET The.NET Framework. The.NET Framework is Microsoft’s distributed run-time environment for creating, deploying, and using applications over the.
High thoughts must have high language. Aristophanes
Architecture of.NET Framework .NET Framework ٭ Microsoft.NET (pronounced “dot net”) is a software component that runs on the Windows operating.
 2002 Prentice Hall. All rights reserved. 1 Introduction to Visual Basic.NET,.NET Framework and Visual Studio.NET Outline 1.7Introduction to Visual Basic.NET.
Microsoft Visual Basic 2005: Reloaded Second Edition
Introduction to .NET Rui Ye.
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
Understanding Code Compilation and Deployment Lesson 4.
ASP.NET  ASP.NET is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required.
Overview of System Development. Overview Selecting a Windows Embedded Operating System The Windows CE Platform Development Cycle The Application Development.
Lecture 1 Programming in C# Introducing C# Writing a C# Program.
Module 1: Overview of the Microsoft.NET Platform.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
.NET Framework Danish Sami UG Lead.NetFoundry
Programming in C#. I. Introduction C# (or C-Sharp) is a programming language. C# is used to write software that runs on the.NET Framework. Although C#
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Introduction to .NET Framework
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 17 Microsoft’s Approach 1 –.NET Mobile Framework Rob Pooley.
Introduction to VB.Net. What is.NET? A brand of Microsoft technologies A platform for creating distributed Web applications A combination of new and updated.
Rajiv and Shipra Introduction to.NET (asp.net,c#,vb)
tom perkins1 XML Web Services -.NET FRAMEWORK – Part 1 CHAPTER 1.1 – 1.3.
Microsoft Office XP Illustrated Introductory, Enhanced Started with Windows 2000 Getting.
Programming of Handheld and Mobile Devices Lecture 2 What is a MID? Rob Pooley
Compunet Corporation1 Programming with Visual Basic.NET Fundamentals of Programming Lecture # 1 Tariq Ibn Aziz.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
PRIOR TO WEB SERVICES THE OTHER TECHNOLOGIES ARE:.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 18 Microsoft’s Approach 1 –.NET Mobile Framework part 2 Rob.
.NET Ying Chen Junwei Chen. What is Microsoft.NET. NET is a development platform Incorporated into.NET COM+ component services ASP web development framework.
Microsoft .NET A platform that can be used for building and running windows and web applications such that the software is platform and device-independent.
Getting Started with.NET Getting Started with.NET/Lesson 1/Slide 1 of 31 Objectives In this lesson, you will learn to: *Identify the components of the.NET.
Common Language Runtime Introduction  The common language runtime is one of the most essential component of the.Net Framework.  It acts.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
INTRODUCTION CHAPTER #1 Visual Basic.NET. VB.Net General features It is an object oriented language  In the past VB had objects but focus was not placed.
Text Introduction to.NET Framework. CONFIDENTIAL Agenda .NET Training – Purpose  What is.NET?  Why.NET?  Advantages  Architecture  Components: CLR,
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
Microsoft Visual Basic 2015 CHAPTER ONE Introduction to Visual Basic 2015 Programming.
1 1 1 Introduction to Java. 2 History of Java Java – Originally for intelligent consumer-electronic devices – Then used for creating Web pages with dynamic.
A Detailed Introduction To Visual Studio.NET CRB Tech ReviewsCRB Tech Reviews introduces you to the world of Visual.
Introducing the Microsoft® .NET Framework
Introduction to .NET Framework Ch2 – Deitel’s Book
.NET and .NET Core 2. .NET Runtimes Pan Wuming 2017.
Microsoft .NET Presentation
.NET Base Type (CTS Data Type) Managed Extensions for C++ Keyword
Overview of System Development for Windows CE.NET
Presentation transcript:

Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 18 Microsoft’s Approach 1 –.NET Mobile Framework Rob Pooley

Programming Handheld and Mobile devices 2.NET The.NET Compact Framework is a subset of the.NET Framework. It consists of the base class libraries and has a few additional libraries that are specific to mobility and device development. The.NET Compact Framework runs on a high performance JIT Compiler. The Common Language Runtime (CLR) is built from the ground up to be specific to the.NET Compact Framework so that it runs more efficiently on small targeted devices that are limited in memory, resources, and must conserve battery power. To be able to run.NET Compact Framework applications, the targeted platforms must support the.NET Compact Framework runtime. –.NET Compact Framework requires a minimum of Windows CE.NET (Windows CE version 4.1 for the released version of the.NET Compact Framework) with two exceptions: Microsoft Pocket PC, Microsoft Pocket PC 2002, and Microsoft Pocket PC 2002 Phone Edition support the.NET Compact Framework.

Programming Handheld and Mobile devices 3 Background The.NET Compact Framework simplifies application development on Microsoft compliant smart devices. Currently this includes the Pocket PC, Pocket PC 2002, Pocket PC Phone Edition and other devices running Windows CE.NET 4.1 or later. You will need Visual Studio.NET 2003 to build applications that target the.NET Compact Framework. You can build applications using either Visual C#.NET, Visual Basic.NET, or both.

Programming Handheld and Mobile devices 4 Structure

Programming Handheld and Mobile devices 5 Elements of the Compact Framework The.NET Compact Framework has two main components: the common language runtime and the.NET Compact Framework class library. –The runtime is the foundation of the.NET Compact Framework. –It is responsible for managing code at execution time, providing core services such as memory management and thread management while enforcing code safety and accuracy. –Code that targets the runtime is known as managed code; code that does not target the runtime, as is the case with eMbedded Visual C++, is known as unmanaged, or native code.

Programming Handheld and Mobile devices 6.NET Code written on the.NET Framework platform is called managed code. The term "managed code" refers to the fact that the Common Language Runtime (CLR) provides several assurances for such code: –Managed code cannot have bad pointers. –Managed code cannot create memory leaks. –Managed code supports strong type-safety. A key benefit of managed code is claimed to be that the managed development environment handles certain common errors that plague Win32® programmers.

Programming Handheld and Mobile devices 7 Managed code Managed code is compiled down to a combination of MSIL (Microsoft Intermediate Language) and metadata. –These are merged into a Pre Execution Environment (PE) file, which can then be executed on any CLR-capable machine. –When you run this executable, the JIT starts compiling the IL down to native code. The result is that all.NET Framework components run as native code. Code that requires the CLR at run-time in order to execute is referred to as managed code. –The CLR is responsible for managing execution of code that runs on the.NET Framework. –There are two DLLs responsible for this: mscoree.dll (native code that loads managed code) and mscorlib.dll (managed code: base class library, the runtime library).

Programming Handheld and Mobile devices 8.NET Compact Framework The.NET Compact Framework class library is a collection of reusable classes that you can use to quickly and easily develop applications. This framework is claimed to be designed with porting in mind, whether to Microsoft or third-party platforms. Coding techniques and the applications run on a Pocket PC could run on other platforms, such as a cell phone or another vendor's PDA, if a version of the.NET Compact Framework was created for that platform.

Programming Handheld and Mobile devices 9 Common Language Runtime The common language runtime provides a code-execution environment that manages code targeting the.NET Compact Framework. –Code management can take the form of memory management, thread management, security management, code verification and compilation and other system services. The runtime is designed to enhance performance. –It uses just-in-time (JIT) compiling, which enables managed code to run in the native machine language of the platform on which an application is running. Whether a mobile application is written in Visual Basic.NET or C#.NET, and as such is managed code, you are still able to incorporate functions and subroutines stored externally in dynamic link libraries (DLLs), including the Windows CE APIs. The.NET Compact Framework provides the data types and support for structures to allow you to easily incorporate functions from the Windows CE APIs into your application.

Programming Handheld and Mobile devices 10.NET Compact Framework Class Library The.NET Compact Framework class library is a collection of reusable classes that tightly integrate with the common language runtime..NET Compact Framework types enable you to accomplish a range of common programming tasks, including –interface design, –reading and writing XML, –database access, –thread management and –file I/O.

Programming Handheld and Mobile devices 11 Form-related Classes The.NET Compact Framework implements a subset of the System.Windows.Forms and System.Drawing classes, which can be used to construct a Windows CE- based user interface for an application. –The Form Designer in Visual Studio.NET manages much of the interaction with these classes. –The implementation of Windows Forms under the.NET Compact Framework includes support for forms, most controls found in the.NET Framework, hosting third-party controls, bitmaps and menus. Table 1 lists the controls included with the.NET Compact Framework.

Programming Handheld and Mobile devices 12 Table 1. Controls included with the.NET Compact Framework ControlDescription Buttonsimple command button CheckBoxcommon checkbox ComboBoxdropdown list of items ContextMenuimplements a context sensitive menu DataGridgrid that can be bound to a data source DomainUpDownlist of items that can be navigated via a scroll bar HScrollBarhorizontal scroll barImageListcontainer that stores imagesInput Panelcontrols the Soft Input Panel, or SIP Labelsimple control for displaying text ListBoxprovides a list of items ListViewprovides four views of data: large icon, small icon, list and details MainMenuimplements a menu on a form NumericUpDownnumeric input field that includes a scroll bar OpenFileDialogprovides access to the native open file dialog Panelcontainer used to hold other controls PictureBoxdisplays images ProgressBarvisual indicator of a task's progress RadioButtoncommon radio button SaveFileDialogprovides access to the native save file dialog StatusBarsimple panel for displaying text TabControlprovides a tab interface for an application TextBoxstandard text input field Timerbasic timer component ToolBarimplements a toolbar on a form TrackBarslider interface used with numeric data TreeViewpresents data in a hierarchical format VScrollBarvertical scroll bar

Programming Handheld and Mobile devices 13 Data and XML Classes The.NET Compact Framework includes a set of classes that support incorporating data (whether from a relational or non-relational data source), including XML content, into mobile applications. These classes are defined under the System.Data and System.Xml namespaces. The implementation of both data and XML classes in the.NET Compact Framework is a subset of that found in the.NET Framework.

Programming Handheld and Mobile devices 14 Web Services The.NET Framework is much about Web services. the.NET Compact Framework System.Web namespace, is a scaled-down version of the capabilities and functionality offered in the corresponding.NET Framework namespace. Most significantly, you can create Web services clients but are not able to host Web services under the.NET Compact Framework. These XML Web service clients can be either synchronous or asynchronous. The Visual Studio.NET IDE does much of the work for you.

Programming Handheld and Mobile devices 15 GDI Support The.NET Compact Framework provides support for the basic drawing elements including –bitmaps, –brushes, –fonts, –icons and –pens through the System.Drawing namespace.

Programming Handheld and Mobile devices 16 Base Classes The.NET Compact Framework provides a set of base classes for use by developers. This underlying infrastructure enables you to write.NET applications including being able to create –multi-threaded applications (System.Threading), –using networking resources (System.Net), and –working with files (System.IO).

Programming Handheld and Mobile devices 17 IrDA Support Windows CE devices, such as the Pocket PC and Pocket PC 2002, include infrared (IR) communication capabilities. In support of this, the.NET Compact Framework includes classes that allow IR communication from within your application. These classes are part of the System.Net.IrDA namespace. You can use IR to communicate with Pocket PCs, printers and other IR-enabled devices.

Programming Handheld and Mobile devices 18 Bluetooth Support The.NET Compact Framework does not provide support for Bluetooth. You can access most third-party Pocket PC implementations of Bluetooth via either serial port communications or through a provider's API.