Top Banner
Network Content & Applications in Mobile Devices http://mobilepit.com/ Mohammad Hafiz bin Ismail ([email protected])
42

Network Content & Applications in Mobile Devices Mohammad Hafiz bin Ismail ([email protected])

Mar 31, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Network Content &

Applications in Mobile Devices

http://mobilepit.com/

Mohammad Hafiz bin Ismail ([email protected])

Page 2: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Do you have Bluetooth Capable Phone ?

Please turn Bluetooth on now for demonstration section

Page 3: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Mobile Devices

Handheld electronic device with limited processing power and connectivity commonly use by end-user consumers

Page 4: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Examples of Mobile Devices

Mobile Phones / Smart PhonesPDA (Pocket PC / Palm)Internet Tablet (Blackberry / Nokia 880)Navigation Device

Page 5: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

What is not Mobile Device

LaptopPersonal ComputerGame Console

Page 6: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Why Mobile Device ? Mobile devices has become increasingly popular during the last 10 years.

Estimate mobile subscribers around the world 2.7 billions.

Currently Malaysia alone have has about 11 millions of mobile phone users

a figure which expected to increase over the years.

(Agar, 2004)

Page 7: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Devices Popularity

(Mobref,2007)

Page 8: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Why Mobile Device

Advancement of cellular technology has allowed

Greater data transfer Faster processing power Greater interactivity Wider connectivity

Page 9: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Early “Mobile Application”

Limited processing powerRelies heavily on a server-side languageDepends on external browserCharacteristic by the use of WML, XHTML, cHTML technologyDoes not actually 'run' on the mobile device.

Page 10: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Early “Mobile Application”

Relies on the server-side to provide both processing power and User Interface

Little or no client-side processingNo client side record/database storage –

everything on the serverSolely depends on internet connection

Page 11: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Emerging Trends of Mobile Application

Runs natively on the mobile device itselfDoes not rely on external browserDepends more on Web Service API (SOAP/XML-RPC/REST) rather than the website itself.Concentrates more on usability and content delivery

Page 12: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Why do we need Native Network Mobile Application

Easy to deploy in commercial senseTightly integrated into user interfaceDoes not rely on external browserThe application can store data on mobile phoneFaster retrieval and response timeThe application can access mobile phone functionalities (camera/sms/caller-id/files)

Page 13: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Examples

“Jeffrey wants to create an application which enables him to share photos taken from his phone camera to some of his friends”

Can it be done with WML/XHTML based mobile application?

Page 14: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Types of Mobile ApplicationEmail ApplicationsVideo StreamingMultiplayer gameNews readerInstant Messenger ApplicationWeather Forecast applicationCurrency converterLocation Base application Home/Security Monitoring Application

Page 15: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Ways Mobile Internet Application Communicate

Low Level

TCP/IP Socket Connection

UDP Datagram

Bluetooth RFComm

‘Virtual’ Serial COM port (on PDA)

Page 16: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Ways Mobile Internet Application Communicate

High Level (The BEST Way!)

Achieve through the use of Web Services XML-RPC SOAP ATOM api Representational-State Transfer (REST)

Page 17: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Why Web Services is the best way?

Uses distributed computing conceptWidely accepted as a ways to publish APIPortable, Web Services only relies on

HTTP/HTTPS availabilityBecomes an Emerging standards of

publishing services (W3C, RFC 4287)

Page 18: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Organization that uses Web Service

Google.com (ATOM -GData, SOAP)Yahoo.com (SOAP)Amazon.com (SOAP)Wordpress.com (XML-RPC)Haze.net.my (REST)Foxrate.org (XML-RPC)

Page 19: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Organization that uses Web Service

Amazon.com

Publish Web API to enable developers to create application that can list latest Amazon product, price comparison and heavily discounted and popular items

Page 20: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Organization that uses Web Service

Flickr.comUses web service API to enable its users to

post/update photos using any application.

Mobile application that uses Flickr API : MobUp (http://mobup.blogspot.com)j2meMap (http://j2memap.sf.net)Mickr (http://www.mickr.de/)

Page 21: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Flickr.com Client Screenshots

MobUp Mickr

Page 22: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

How Web Services Architecture Works ?

XML-RPC API Server (http://foxrate.org)

DB DB DB

currencyConvert(USD,MYR,100) Result() = 353.71

Procedure stored on the server

User Interface is inside the phone

Less of 1KB data Less than 1KB data

Page 23: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

But the same application can be written in WML!

Why bother? Any opinion ?

Page 24: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Web Service is better because

It separates the developers work and the service providers work

Developers only concentrates on their best expertise, developing mobile clients.

Developers does not need to maintain the information itself

Page 25: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Web Service is better because

In mobile application, size DOES matter!

Data transfer need to be optimized for faster response time (latency) and cost)

Locally run Mobile Internet Application that uses Web Service do just that!

Page 26: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Bandwidth & Data transfer efficiency

Typical WML Application

Request website foxrate.org

Website (interface) displayed index.wml – 4KB

foxrate.org

User request currency exchange (process.php) – less than 1KB

foxrate.org

Page 27: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Bandwidth & Data transfer efficiency

XML-RPC API Server (http://foxrate.org)

DB DB DB

currencyConvert(USD,MYR,100) Result() = RM 353.71

Procedure stored on the server

User Interface is inside the phone

Less of 1KB data Less than 1KB data

Total Data transfer = 1KB + 1KB

= 2KB

Page 28: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Bandwidth & Data transfer efficiency

Typical WML Application

Result displayed result.wml (3KB)

foxrate.org

Total Data transfer = 4KB + 3KB + 1KB = 8KB

Web Services is 4 times smaller than a typical WML application !

Page 29: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Why?

The main reason is the user interface of WML application is stored on the server not client

By using web service we are free to create our own user interface independent of the service provider.

Page 30: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

WML Drawbacks from Commercial Aspect

WML application are hard to sellHard to distributeRequire constant maintenance (server)Hard to customize on the mobile phone

part (different vendor wants to put their own logo, endorsement)

WML application can’t use phone features (camera,bluetooth, GPS, InfraRed)

Page 31: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Further Reading on Web Services

XML-RPC http://xmlrpc.comhttp://www.xml-rpc.net/

SOAPhttp://www.w3.org/TR/soap/http://www.soaprpc.com/ws_implementatio

ns.html

Page 32: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

What Next ?

Location Base Application (GPS)Car NavigationFishing Spot FinderSpeed Warning (GPS Auto)GPSolat

More mobile phones are equipped with GPS receiver, it’s the latest trend!

Page 33: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Location Base Application

Page 34: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

GPSolat – Prayer time base on GPS

Prayer time is different according to location, season and direction.

GPSolat uses location data to determine the Kiblah direction and users’ current location

Base on that it can calculates prayers time.No need to worry about prayers time when

travelling anymore!!

Page 35: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Internet Mobile Application SDK

You can create Internet Mobile Application using any of these platforms

JavaME (http://sun.java.com/javame)

Symbian (http://forums.nokia.com) (Nokia)

.NET Compact Framework (http://msdn.microsoft.com/mobility/netcf/) (PDA)

Page 36: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

JavaME

The best SDK for learningSupported by almost all modern phonesHas great documentationUses JavaHas a lot of librariesImplementations guaranteed to support

HTTP/HTTPS protocol for communication.Portable

Page 37: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

.NET Compact Framework

Great for people who are familiar with .NET

Supported by Windows Mobile PDA devices only

More powerful than JavaMETighter integration with device

(Microsoft+Microsoft)

Page 38: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Symbian

Uses C++Harder to code compared with othersVery close to hardware implementationLimited device, only supported on some

Nokia and Sony Ericsson Smartphone

Page 39: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Screenshots

Page 40: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Why Develop Mobile Application?

The Desktop application market has been saturated and controlled by bigger companies. (i.e nobody uses other application than MS-Word, Powerpoint)

Mobile devices is the new playground. Opportunities to develop localized content Huge marketplace, can compete with each other

fairly. Niche Market, you can sell through telcos

Page 41: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Places to publish Mobile Application

Handago.comGetJar.comPayloadz.comPocketGear.comMypdaCafe.com

And many others!

Page 42: Network Content & Applications in Mobile Devices  Mohammad Hafiz bin Ismail (info@mypapit.net)

Network Content Applications in Mobile Devices

Q&A