“The search for common ground in a divided market”
Early Smart Phones :
What is a smart phone?
Operating systems : Symbian
- Robust and well vetted platform
- Very open
- Low overhead eventbased programming
Disadvantages :
- Strange flavor of C++ : Java and others with SDK
- Resource management is cumbersome
- Two popular SDK’s that are incompatible
UIQ VS S60 :
S60 Development : The stack
All applications are treated as dll’s and have a single entry point and the main is Application Class.
It uses MVC style organization :
S60 Development : Active Objects
S60 Development : Error Handling
Tint Error :
On June 24, 2008 Nokia outright purchased the Symbian OS and Symbian Foundation Formed. Their goals are to “Provide a royalty-free open platform and accelerate innovation” and to combine Symbian OS, S60, UIQ and to move code base to open source in next two years.
Numbers :
other executable code by any means, including
without limitation through the use of a plug-in
architecture, calling other frameworks, other
APIs or otherwise. No interpreted code may be
downloaded and used in an Application except for
code that is interpreted and run by Apple’s
Published APIs and built-in interpreter(s).”
– iPhone SDK EULA
iPhone Development: SDK
Delegation don't subclass and method calls are messages [Object Message] and both are dynamic. The memory is managed that can auto-release.
In the beginning :
The first mobile phone in the history.- MOTOROLA DYNATAC 8000X
Early Smart Phones :
- IBM Simon
- Nokia 9000 Series
What is a smart phone?
- Semi-Smart : phone that offers features beyond making calls like e-mail, taking pictures, play mp3, etc.
- Phone that runs a complete operating system:
- Offers a standardized platform for development.
- Able to execute arbitrary 3rd party applications.
- Today :
- Cell phones in use today ~ 1.2 billion.
- Smartphones account for 14% ~ 170 million.
- Projected 2012
- Cell phones ~ 1.7 billion.
- Smartphones 29% ~ 500 million.
- 300% Smartphones growth in three years.
Mobile Development Solutions :
- Java ME
- Symbian
- UIQ
- S60
- Android
- Blackberry
- OVI
- Windows Mobile
- iOS
- LiMo
- Ångström distribution
- Adobe Flash Light
- BREW
- OpenMoko
- Palm OS (Garnet OS, Cobalt OS)
- Palm webOS (Mojo)
- Different Phones Different Uses
- Phones for consumer or phone for business.
- V-Cast vs Palm
- Money
- Hardware made money.
- Tried to maintain control over content and services.
- Wanted to charge 3rd party developers for the
privilege of using their platform.
Common problem for The Mobile Application Developers is Abstraction :
- Interface / GUI
- How does the developer create an interface.
- Different interaction techniques.
- Graphical capabilities of the phone.
- Phone Services and Security
- What resources are available to your program.
- What types of boundaries or constraints are put on
applications. - How can code be considered “safe”.
- Distribution
- Centralized repository.
- Direct OTI.
- From PC.
- Development
- Language familiarity
- Debugging
- Emulation Vs on Phone
- Performance ( Very limited resources and battery )
There are three tiered solutions for Mobile Development :
- Virtual Environment
- Java ME
- BREW
- Core Operating System
- Symbian
- LiMo
- Rich Operating System :
- Android
- iOS
- Java Platform :
- KVM / CLDC
- Mobile Information Device Profile
- Java Micro Edition
- BINARY RUNTIME ENVIRONMENT FOR WIRELESS (BREW)
- C/C++ vs Java
- Smaller subset of phones
- Tighter integration then ME
Operating systems : Symbian
- Symbian at a glance
Advantages :
- Huge Market Share 45%- Robust and well vetted platform
- Very open
- Low overhead eventbased programming
Disadvantages :
- Strange flavor of C++ : Java and others with SDK
- Resource management is cumbersome
- Two popular SDK’s that are incompatible
UIQ VS S60 :
- Rival SDK’s for the Symbian OS
- UIQ
- Sony Ericsson
- Touch screen phones
S60 Development : IDE
- Carbide.c++
- Developed by Nokia
- IDE based on Eclipse platform
- Provides a set of tools for debugging
- SDK independent
- Carbide.vs
- Visual studio implementation
- Similar feature set
All applications are treated as dll’s and have a single entry point and the main is Application Class.
It uses MVC style organization :
- M: Document Class
- V: Container / ContainerView Class
- C: AppUI Class
S60 Development : Active Objects
S60 Development : Error Handling
- LEAVE and TRAP vs try/catch
- Try Catch has large overhead
- Use TRAP Macro
- Cleanup is an issue :
Void Ctest::FooL()
{
CBar* v1= new (Eleave) Cbar;
CleanupStack::PushL(v1);
//Do dangerious things
EvilMethodL();
CleanupStack::PopAndDestroy();
};
Tint Error :
TRAP(error, fooL());{
If(error!=KErrNon)
{
// Handel exception
}
S60 Development : Security Model
- Data caging
- /Resource
- /Sys
- /Private
- /“Anything else”
- Capabilities
- Open to all
- Granted by user at install
- Symbian Signed
- OEM
S60 Development : Future
On June 24, 2008 Nokia outright purchased the Symbian OS and Symbian Foundation Formed. Their goals are to “Provide a royalty-free open platform and accelerate innovation” and to combine Symbian OS, S60, UIQ and to move code base to open source in next two years.
Operating Systems : iOS
- SDK Released March 6th 2008
- Billion apps downloaded as of April 23rd
- Includes both pay and free
- Assuming 10% paid downloads
- lowest price of $.99/app
- $99 Million
- 17% Market share just in front of Blackberry
- Still well behind Symbian but growing very fast
- Objective-C
- Message based architecture
- Similar to Smalltalk
- No Java VM or other 3rd party plugins
other executable code by any means, including
without limitation through the use of a plug-in
architecture, calling other frameworks, other
APIs or otherwise. No interpreted code may be
downloaded and used in an Application except for
code that is interpreted and run by Apple’s
Published APIs and built-in interpreter(s).”
– iPhone SDK EULA
iPhone Development: SDK
- Four distinctive framework API’s
- Cocoa Touch Layer
- Media Layer
- Core Services Layer
- Core OS Layer
- IDE
- Xcode
- Interface Builder
- iPhone Simulator
- On phone application development
iPhone Development : Interface Builder / Xcode
- Design for graphical, event-driven applications.
- Pallet of GUI widgets to use in your views.
- Drag and drop widgets onto views.
- Links between objects can be created graphically.
- Produces Nib Files.
Delegation don't subclass and method calls are messages [Object Message] and both are dynamic. The memory is managed that can auto-release.
{
NSString *string =[... Alloc]…;
[string release];
return string; //??
}
{
NSString *string =[... Alloc]…;
[string autorelease];
return string;
}
iPhone Development : Application Life Cycle
iPhone Development : Security Model
Originally all applications ran as root. Not a whole lot better now because all apps run as “mobile” user. The iOS survived this year’s Pwn2Own google competition. Security based on delivery mechanism and all applications must be delivered through the iTunes App Store. Applications addition requires apple approval and testing it costs $99 for App Store and $299 for Enterprise and it is digitally signed by developer.
iPhone Development : Future
- In app purchases
- Accessory APIs
- Peer to Peer connectivity : New Game Kit
- iPod library access
- Embedded maps
- Copy & Paste
- Video
- Averaged 47% growth/month over first four months.
- iPhone 88%
- Currently only on HTC Dream(G1)
- Really cool concept but will it penetrate the market.
What is Android?
It is a full stack of OS, Middleware, Applications and IDE. It is a fully open source OS. Android gives the user the full control of their devices and can establish preferred applications. Application Modularity provide functionality that can be used by others.
Android Development : JVM
- Dalvik
- Runs .dex files.
- Similar to a JAR.
- Used a cross compiler tool ‘dx’
- Optimized for multiple instances.
- Why not Java ME?
- Still under control of Sun Micro.
- Veto on any proposed changes.
Android Development : Application Overview
- Packaged in one .apk file
- Each application lives in its “own phone”
- Its own JVM.
- Its own “file system”
- Component based architecture :
- Activities
- Services
- Broadcast receivers
- Content providers
- Manifest file provides information about components.
Android Development : Activities
A visual interface for one task a user will attempt. Each activity gets a window to draw in. Similar to a controller, takes view objects to display in the window. Views can nest within each other. Application can designate one activity as first.
Android Development : Services
Background process that is not UI ex. Media Player. It can connect (bind) to a service that currently running or by starting it. Once bound can communicate through predefined interface. You start, stop, etc the Media Player.
Android Development : Broadcast Receivers / Content Providers
- Broadcast Receivers
- Event listeners ( No UI )
- Can broadcast events
- On event execute activity or display notification
- Content Providers
- Opens specific part of an applications data
- Uses Content Resolvers
Androids Development : Intents
- Contains the target object, the target method, and a URI of data to act on
- Activates components ( Aside from content providers )
- Intent can call startActivity, startService, sendBroadcast
Android Development : Demo
That's all folks,
Thanks for reading.