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

Slides:



Advertisements
Similar presentations
How to Build Multi- threaded Applications in.NET Mazen S. Alzogbi Technology Specialist Microsoft Corporation.
Advertisements

Introduction to .NET Framework
Tahir Nawaz Introduction to.NET Framework. .NET – What Is It? Software platform Language neutral In other words:.NET is not a language (Runtime and a.
J2ME 25 July Overview  What is J2ME?  The CLDC and CDC configurations  MIDP and MIDlets  Development Tools  Demonstrations.
Chapter 14 Multithreading Yingcai Xiao. Multithreading is a mechanism for performing two or more tasks concurrently.  In the managed world of the common.
.NET Framework Overview Pingping Ma Nov 16 th, 2006.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 10 Java for MIDs Rob Pooley
CIM2564 Introduction to Development Frameworks 1 Overview of a Development Framework Topic 1.
.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.
Programming Our First Java Program Yingcai Xiao. What to Do Set up for Java Programming Write our first Java Program with IDE Write our first Java Program.
J2ME Prepared by: - Gaery- Ronny - Alan- Andy. Why Technology for Mobile Devices? The nature of wireless devices is changing Old devices: All the software.
For more Lectures and Notes Visit
@2011 Mihail L. Sichitiu1 Android Introduction Platform Overview.
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.
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
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.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 18 Microsoft’s Approach 1 –.NET Mobile Framework Rob Pooley.
Lecture 2: An Introduction to J# and.NET. 2 MicrosoftIntroducing CS using.NETJ# in Visual Studio.NET 2-2 Objectives “Microsoft.NET is based on the.NET.
Rajeswari Indupuri Introduction to.NET Framework.
Programming mobile devices Part II Programming Symbian devices with Symbian C++
A Free sample background from © 2001 By Default!Slide 1.NET Overview BY: Pinkesh Desai.
Introduction to .Net Framework
ASP.NET The.NET Framework. The.NET Framework is Microsoft’s distributed run-time environment for creating, deploying, and using applications over the.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
.NET & C# Introduction 11 March, 2004 Yusung Kim CS441 Introduction to Computer Networking.
Introduction to.NET Framework. .NET – What Is It? Software platform Language neutral In other words:.NET is not a language (Runtime and a library for.
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
@2011 Mihail L. Sichitiu1 Android Introduction Platform Overview.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 11 J2ME and MIDlets Rob Pooley
Presentation 11: SOAP on small devices. Ingeniørhøjskolen i Århus Slide 2 af 11 Outline Which small devices? What are the limitations and what kind of.
Small Devices on DBGlobe System George Samaras Chara Skouteli.
Framework and application bytecode size CLDC MIDP kXML parser Utility classes Graphics Logic (MIDlet) Application Data (XML file)
CS795/895: Introduction. Topics Distributed Systems –Availability –Performance –Web Services Security –Authentication –Authorization –Confidentiality.
Component-Based Software Engineering Introduction to.NET Paul Krause.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 12 lcdui Rob Pooley
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#
Özgür Zeytinci Network Programming Microsoft.NET.
111 © 2002, Cisco Systems, Inc. All rights reserved.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 17 Microsoft’s Approach 1 –.NET Mobile Framework Rob Pooley.
1.NETConcurrent programmingNOEA / PQC 2007 Concurrent programming Threads –Introduction –Synchronization.
Laboratory - 4.  Threading Concept  Threading in.NET  Multi-Threaded Socket  Example.
Programming of Handheld and Mobile Devices Lecture 2 What is a MID? Rob Pooley
Using Threads SWE 344 Internet Protocols & Client Server Programming.
12/5/2015.net 1 system.net Contains any network functionallity you would need in c# Several sub namespaces exists to allow for more fined control –System.Net.Sockets.
Concurrency Control 1 Fall 2014 CS7020: Game Design and Development.
Module 1: Overview of the Microsoft .NET Framework
PRIOR TO WEB SERVICES THE OTHER TECHNOLOGIES ARE:.
BIL527 – Bilgisayar Programlama I Introduction 1.
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.
.NET Mobile Application Development XML Web Services.
Multithreading The objectives of this chapter are: To understand the purpose of multithreading To describe Java's multithreading mechanism.
Presentation 11: SOAP on small devices. Ingeniørhøjskolen i Århus Slide 2 af 10 Outline Which small devices? What are the limitations and what kind of.
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
Presentation 11: SOAP on small devices. Ingeniørhøjskolen i Århus Slide 2 af 10 Outline Which small devices? What are the limitations and what kind of.
A Detailed Introduction To Visual Studio.NET CRB Tech ReviewsCRB Tech Reviews introduces you to the world of Visual.
Lecture 6 Threads Erick Pranata
Object Oriented Programming in
Visit for more Learning Resources
Async or Parallel? No they aren’t the same thing!
C# and the .NET Framework
Introduction to .NET Framework Ch2 – Deitel’s Book
Wireless Instant Messaging Using J2ME
CMPE419 Mobile Application Development
PalmOS.
Microsoft .NET Presentation
Android Introduction Platform Mihail L. Sichitiu.
Visual Programming COMP-315
CMPE419 Mobile Application Development
.Net Framework: A Survey of Important Libraries
Presentation transcript:

Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 18 Microsoft’s Approach 1 –.NET Mobile Framework part 2 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 Structure

Programming Handheld and Mobile devices 4 Namespaces supported in.NET Framework and.NET Compact Framework

Programming Handheld and Mobile devices 5 Windows Forms All the common features Windows Forms in the.NET Framework are present in.NET Compact Framework. These features are differently implemented in a separate manner to make them more efficient for size and performance. Supported are: Common controls such as: –Buttons –Listboxes –Tree-views –Listviews –Combo boxes –Textboxes –Picture boxes –Scroll bars –Labels Bitmaps Pens Brushes Colors Drawing Fonts Support for Forms

Programming Handheld and Mobile devices 6 Networking with TCP etc. The System.Net.Sockets namespace is used to provide an interface to access the transport layer of protocol stacks. Multiple protocols can be exposed through this class. In addition,.NET Compact Framework provides additional classes that simplify common developer tasks encapsulating much of the necessary code that is common across all TCP client/server applications. Some of these are: –TCPListener –TCPClient –UDPClient

Programming Handheld and Mobile devices 7 HTTP HttpWebRequest and HttpWebResponse classes provide a rich HTTP client. These classes also support many of the standard mechanisms for encryption and authentication such as SSL/TLS and basic HTTP authentication. Other Web requests can be implemented using other protocols such as: –WebRequest interface –WebResponse interface –IwebRequestCreate interface

Programming Handheld and Mobile devices 8 System.Threading Namespace The System.Threading namespace provides classes and interfaces that enable multithreaded programming. In addition to classes for synchronizing thread activities and access to data (Mutex, Monitor, Interlocked, AutoResetEvent, and so on), this namespace includes aMutexMonitorInterlocked AutoResetEvent –ThreadPool class that allows you to use a pool of system-supplied threads, and aThreadPool –Timer class that executes callback methods on thread pool threads.Timer

Programming Handheld and Mobile devices 9 Threading using System; using System.Threading; // Simple threading scenario: Start a static method running // on a second thread. public class ThreadExample { // The ThreadProc method is called when the thread starts. // It loops ten times, writing to the console and yielding // the rest of its time slice each time, and then ends. public static void ThreadProc() { for (int i = 0; i < 10; i++) { Console.WriteLine("ThreadProc: {0}", i); // Yield the rest of the time slice. Thread.Sleep(0); } public static void Main() { Console.WriteLine("Main thread: Start a second thread."); // The constructor for the Thread class requires a ThreadStart // delegate that represents the method to be executed on the // thread. C# simplifies the creation of this delegate. Thread t = new Thread(new ThreadStart(ThreadProc)); // Start ThreadProc. On a uniprocessor, the thread does not get // any processor time until the main thread yields. Uncomment // the Thread.Sleep that follows t.Start() to see the difference. t.Start(); //Thread.Sleep(0); for (int i = 0; i < 4; i++) { Console.WriteLine("Main thread: Do some work."); Thread.Sleep(0); } Console.WriteLine("Main thread: Call Join(), to wait until ThreadProc ends."); t.Join(); Console.WriteLine("Main thread: ThreadProc.Join has returned. Press Enter to end program."); Console.ReadLine(); }

Programming Handheld and Mobile devices 10.NET vs J2ME vs Palm OS Problems –Palm OS is the most cumbersome to program –Palm OS uses C/C++ –Palm OS and.NET Compact are both specific to certain kinds of device –J2ME requires a JVM (KVM or CVM) –J2ME is not really compatible with J2SE Benefits –Palm OS is available for many PDAs –J2ME is the most portable –J2ME has wireless features as standard –J2ME uses Java –.NET is higher level –.NET supports XML –.NET supports several languages