Upload
vinod-pillai
View
2.100
Download
1
Tags:
Embed Size (px)
DESCRIPTION
Basic of Mobile Development, WML & WMLScript.
Citation preview
MOBILE APPLICATION DEVELOPMENT&ANDROID BASICS
Presentation ByMr. Vinod Pillai
[email protected]://vinodthebest.wordpress.com
Chaudhari Technical Institute, Gandhinagar
Agenda:
• About Me.
• Area of Interest.
• Future Scope.
• Part – I Mobile & Wireless Computing.
• Part – 2 WAP, WML & WMLScript.
• Part – 3 XHTML Mobile Profile (XHTML MP)
• Part – 4 J2ME Application Development.
• Part – 5 Android Basics.
• Part – 6 Blackberry Development Info.
About Me:
• Having 2.0 years of Industry experience inClient server applications with Java, J2EE,Struts & PHP technologies.
• 2.5 years teaching experience (Subjects: C,C++, Java, Advance Java & NT-II, J2ME).
• Strong Technical skills in Java, J2EE (Servlet,JSP, EJB)
• Done Master of Computer Science (WollongongUniversity - Australia)
Areas of Interest:
Web Application Development Mobile Application Development
Android Application Development J2ME Application Development
Struts Hibernate 3.0
Cyber LAW Semantic Web ( RDFa)
Future Scopes:
•Mobile Computing
•Network Security / Wireless App
•Cyber Crimes (Cyber Laws)
•Cloud Computing
•Semantic Web
Current Status:
• About Me.
• Area of Interest.
• Future Scope.
• Part – I Mobile & Wireless Computing.
• Part – 2 WAP, WML & WMLScript.
• Part – 3 XHTML Mobile Profile (XHTML MP)
• Part – 4 J2ME Application Development.
• Part – 5 Android Basics.
• Part – 6 Blackberry Development Info.
Part – 1 (Mobile & Wireless Computing.)
Scope of Mobile Application Development
• As the time passes, the mobile has overcomethe conception of just acting as a device tomake voice calls.
• It has now embedded in itself number ofother features which have brought a hugerevolution in the mobile applicationdevelopment process.
• Mobile Application development is theprocess of developing applications which actsas an added feature in any handheld device.
Scope of Mobile Application Development
• Applications are developed using variousplatforms.
• Some of the platforms are Android,Blackberry, iPhone, Symbian, iPad, Windowsmobile.
• It covers vast range of booming sectors likebusiness, Games, News, Weather, Education,and Money or the finance sector are some ofthe few categories where the mobileapplication development process is carried on.
Mobile & Wireless Computing
Current Status:
• About Me.
• Area of Interest.
• Future Scope.
• Part – I Mobile & Wireless Computing.
• Part – 2 WAP, WML & WMLScript.
• Part – 3 XHTML Mobile Profile (XHTML MP)
• Part – 4 J2ME Application Development.
• Part – 5 Android Basics.
• Part – 6 Blackberry Development Info.
Part – 2 (WAP, WML & WMLScript)
Key Terms:
Internet/Web App.
HTML/XHTML
JavaScript CSS
Browser
DHTML
StandaloneApp.
Two major parts of Mobile Development:
•Web Site/Web Application1
•Mobile Application/Software2
Website Development (Mobile)
• The number of users browsing the Web from amobile device continues to rise, creating a greatweb experience for users of mobile devices ismuch easier than you might think.
• A few different types of markup are availablefor building a mobile web site. You'll need tochoose one that suits the needs of yourcustomers and stick with it.
Website Development (Mobile):
WML & WMLScript
XHMTL
XHMTL - MP
WML
• In the early days of mobile web devices, theonly way to surf the mobile web was to browseWAP (Wireless Application Protocol) sites.
• A WAP site uses WML (Wireless MarkupLanguage) as its primary markup language.
• WML is an XML markup language based on thecard-and-deck metaphor.
• WML is mostly used by legacy systems or bysites that explicitly target customers with low-end phones that are six years old or older.
WML
• One potential group of customers still usingWML browsers, however, is those in developingnations.
• The Nokia 1100 and 1101, for example, areextremely basic, extremely cheap phones, ofwhich an estimated 200 million units have beensolid worldwide, making this phone the best-selling model to date, worldwide.
• If your site is targeted to this market segment,WML might be the best solution for you.
WML
• WML (Wireless Markup Language) is the firstmarkup language standard for wireless devices.
• WML stands for Wireless Markup Language.
• It is a mark-up language inherited from HTML,but WML is based on XML, so it is much stricterthan HTML.
• WML is used to create pages that can bedisplayed in a WAP browser. Pages in WML arecalled DECKS. Decks are constructed as a set ofCARDS.
WML
• Only one card will be shown on the screen ofthe wireless device each time.
• If the user goes to another card of the samedeck, the mobile browser does not have to sendany requests to the server since the file thatcontains the deck is already stored in thewireless device.
WML
Card - 1
Card - 2
Card - 3
Desk
WML
WML
Correct Format
WML
WML
WML
WML
WML
Current Status:
• About Me.
• Area of Interest.
• Future Scope.
• Part – I Mobile & Wireless Computing.
• Part – 2 WAP, WML & WMLScript.
• Part – 3 XHTML Mobile Profile (XHTML MP)
• Part – 4 J2ME Application Development.
• Part – 5 Android Basics.
• Part – 6 Blackberry Development Info.
Part – 3 (XHTML & XHTML MP)
XHTML & XHTML-MP
• Most built-in phone browsers these days canhandle XHTML just fine. A mobile phonerecognizes two flavours of HTML:
– XHTML -- the same, basic XHTML rendered bydesktop web browsers
– XHTML-MP -- the MP here stands for Mobile Profile
• The difference between these two languages isthat XHTML-MP consists of slightly fewerelements and tighter restrictions. Thesedifferences
XHTML & XHTML-MP
• These differences exist to make it easier for themobile device to parse and render a webdocument, but writing XHTML-MP markupshouldn't introduce any significant changes toyour process for writing regular XHTML.
XHTML
• DOCTYPE Compulsory
• Each and every <tag> must have closing </tag>
• Every tag must be properly <nested>
• All tags must be in the lower case only.
• All the attributes of the tags also in lower case.
• All attribute values in “ ” only.
XHTML (Basic Tags)
XHTML-MP
• XHTML Mobile Profile and is designed forresource-constrained Web clients that do notsupport the full set of XHTML features, such asmobile phones, PDAs, pagers and set-topboxes.
• It extends XHTML Basic with modules,elements and attributes to provide a richerauthoring language.
XHTML-MP
• XHTML Mobile Profile is the official markuplanguage in the most recent WAP specificationversion 2.0 defined by the former WAP Forum.
• The WAP Forum created XHTML Mobile Profilebased on XHTML Basic, with the addition ofsome elements and attributes from the fullversion of XHTML such as <i>, <b>, <small>,<big> and <hr>. XHTML Mobile Profilesupports a simplified version of cascadingstyle sheet called WCSS / WAP CSS.
XHTML-MP
• <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
• The greatest advantage brought by XHTML MPis that developers can now use the sametechnologies for the development of both websites and WAP sites.
Current Status:
• About Me.
• Area of Interest.
• Future Scope.
• Part – I Mobile & Wireless Computing.
• Part – 2 WAP, WML & WMLScript.
• Part – 3 XHTML Mobile Profile (XHTML MP)
• Part – 4 J2ME Application Development.
• Part – 5 Android Basics.
• Part – 6 Blackberry Development Info.
Part – 4 (J2ME Application Development.)
Java Key Terms:
Java SDK (Standalone App.)
J2EE (Web App.)
J2ME (Mobile App.)
J2ME
• Core Java was already present but however,instead of beefing up Java with additionalAPIs, the team at Sun, along with the JavaCommunity Process Program, dismantled boththe Java programming language and the JavaVirtual Machine.
• They stripped down Java APIs and the JVM tothe minimum coding required to provideintelligence to embedded systems andmicrocomputer devices.
J2ME – Configuration & Profile
• The result of their efforts is J2ME.
• J2ME is a reduced version of the Java API andJava Virtual Machine that is designed tooperate within the sparse resources availablein the new breed of embedded computers andmicrocomputers.
• There are two configurations for J2ME as ofthis writing. These are Connected LimitedDevice Configuration (CLDC) and theConnected Device Configuration (CDC).
J2ME - CLDC
• CLDC devices use the KJava Virtual Machine(KVM) implementation, which is a stripped-down version of the JVM.
• CLDC devices include pagers, personal digitalassistants, cell phones, dedicated terminals,and handheld consumer devices with between128KB and 512KB of memory.
J2ME - CDC
• CDC devices use a 32-bit architecture, have atleast two megabytes of memory available, andimplement a complete functional JVM.
• CDC devices include digital set-top boxes,home appliances, navigation systems, point-of-sale terminals, and smart phones.
J2ME - Profile
• A profile consists of Java classes that enableimplementation of features for either aparticular small computing device or for aclass of small computing devices.
• Seven profiles have been defined as of thiswriting. These are the Foundation Profile,Game Profile, Mobile Information DeviceProfile, PDA Profile, Personal Profile, PersonalBasis Profile, and RMI Profile.
Installing J2ME
• Step 1. JDK 1.6 Minimum required.
• Step 2. Download J2ME 3.0 (Oracle Website)
• Step 3. Installing JDK 1.6
• Step 4. Install J2ME 3.0
Current Status:
• About Me.
• Area of Interest.
• Future Scope.
• Part – I Mobile & Wireless Computing.
• Part – 2 WAP, WML & WMLScript.
• Part – 3 XHTML Mobile Profile (XHTML MP)
• Part – 4 J2ME Application Development.
• Part – 5 Android Basics.
• Part – 6 Blackberry Development Info.
Part – 5 (Android Conf. Eclipse)
Installing & Working Android
• Step 1. JDK 1.6 Minimum required.
• Step 2. Downloading the SDK Starter Package
• Step 3. Installing the ADT Plugin for Eclipse
• Step 4. Adding Platforms and Other
Components
• Step 5. Exploring the SDK (Optional)
http://www.android.com/
http://developer.android.com/index.html
http://developer.android.com/sdk/index.html
http://developer.android.com/sdk/requirements.html
http://www.oracle.com/technetwork/java/javase/downloads/index.html
http://www.eclipse.org/downloads/
http://developer.android.com/sdk/installing.html
Installing Android SDK
Installing Android SDK
Installing Android SDK
Installing Android SDK
http://developer.android.com/sdk/eclipse-adt.html#installing
Step 3. Installing the ADT Plugin for Eclipse
Installing the ADT Plugin for Eclipse
Installing the ADT Plugin for Eclipse
Installing the ADT Plugin for Eclipse
Installing the ADT Plugin for Eclipse – Second Option
http://developer.android.com/sdk/eclipse-adt.html#installing
Configuring the ADT Plugin
Configuring the ADT Plugin
Task Completed
• Step 1. Downloaded Android SDK
• Step 2. Downloaded Java JDK 1.6
• Step 3. Downloaded Eclipse
• Step 4. Installing Android SDK
• Step 5. Downloaded Eclipse ADT Plugin.
• Step 6. Configuring ADT Plugin.
Extra: (Path)
http://www.android.com/
https://market.android.com
Current Status:
• About Me.
• Area of Interest.
• Future Scope.
• Part – I Mobile & Wireless Computing.
• Part – 2 WAP, WML & WMLScript.
• Part – 3 XHTML Mobile Profile (XHTML MP)
• Part – 4 J2ME Application Development.
• Part – 5 Android Basics.
• Part – 6 Blackberry Development Info.
Part – 6 (Blackberry Development Info.)
http://us.blackberry.com/developers/
http://us.blackberry.com/developers/started/bbdevapproach.jsp
http://us.blackberry.com/developers/javaappdev/javaupdate.jsp
Current Status:
• About Me.
• Area of Interest.
• Future Scope.
• Part – I Mobile & Wireless Computing.
• Part – 2 WAP, WML & WMLScript.
• Part – 3 XHTML Mobile Profile (XHTML MP)
• Part – 4 J2ME Application Development.
• Part – 5 Android Basics.
• Part – 6 Blackberry Development Info.
Materials to be provided are:
Nokia Browser related Software & Conf. File
WML Examples
J2ME related Software
J2ME Complete Reference E-book
Android Software + Eclipse Software
Android Videos