2014-11-05

The slide is here http://www.slideshare.net/khirulnizam/android-app-development-hybrid-approach-for-beginners

Yet another journey to mobile development using Apache Cordova (previously known as PhoneGap). Attended a course that introduce the usage of HTML5 and jQuery to develop a cross-platform mobile Apps.

STEP 1: Preparing the Apache Web Server

Download and install your preferred Apache web server. In my case, am using the Apache web server in XAMPP.

In your htdocs, create a folder for your project. Inside the project folder, create the items as shown in the picture below. An index.html, a js folder, css and image.



STEP 2: Copy the jQuery mobile templates

Available in the jQueryMobile - download the latest from here http://jquerymobile.com/resources/download/jquery.mobile-1.4.5.zip.

After finish downloading the jQuery for mobile installer, extract. Copy the CSS and JS library in the respective folder created in Step 1.

One HTML file can accommodate the whole apps – try this demo http://demos.jquerymobile.com/1.4.5/pages/

Now we code using NotePad++, create index.html on htdocs/mobile

</script>
</head>

<body>
<!-- Start of first page -->
<div data-role="page" id="page1" >
<div data-role="header" > Page 1 </div>
<div role="main" class="ui-content"> Hi </div>
<div data-role="footer"> kerul.net </div>
</div>
<!-- /end of 1st page -->
<!-- Start of second page -->
<div data-role="page" id="page2" >
<div data-role="header" > Page 2 </div>
<div role="main" class="ui-content"> Hoi </div>
<div data-role="footer"> kerul.net </div>
</div>
<!-- /end of 2nd page -->
</body>
</html>



Get Started! jQuery Mobile

jQuery Mobile

jQuery Mobile is a user interface framework based on jQuery that works across all popular phones, tablet, e-reader, and desktop platforms. Built with accessibility and universal access in mind, we follow progressive enhancement and responsive web design (RWD) principles. HTML5 Markup-driven configuration makes it easy to learn, but a powerful API makes it easy to deeply customize the library.

Packaging With Cordova

Preparing Android App For Google Play Using Windows

Requirement

Windows 7/8 in this case Windows 8

JAVA SDK

Android ADT

Apache ANT

NodeJS

Apache Cordova

For better understanding, create folder 'Mobile Dev' in Drive C.

All file will be downloaded here and this location 'C:\Mobile Dev' will be used for Apache ANT and Android Development Tool SDK.

We will go through STEP BY STEP with images to gain best understanding

Apache Cordova

Cordova is an open-source mobile development framework. It allows you to use standard web technologies such as HTML5, CSS3, and JavaScript for cross-platform development, avoiding each mobile platforms' native development language. Applications execute within wrappers targeted to each platform, and rely on standards-compliant API bindings to access each device's sensors, data, and network status

Android App

A mobile software application developed for use on devices powered by Google's Android platform. Android apps are available in the Google Play Store (formerly known as the Android Market), in the Amazon Appstore and on various Android App-focused sites, and the apps can run on Android smartphones, tablets, Google TV and other devices.

This tutorial is in the development process, sorry to keep you waiting.

The Training Outline

Module

Hybrid Android Apps Development
(using HTML5, jQuery, Apache Cordova and ADT)

Duration

4 days

Synopsis

With Android phones being produced by all of the major phone manufacturers and with the addition of new tablet devices, it's no surprise that the Android platform is the fastest growing mobile development platform in the world. In this course, you will learn to develop Android applications using HTML5 and the ADT development environment. You will learn basic application development including using the Android call, SMS functions, working with online database, and location mapping.

The benefit of having the HTML and jQuery as the development tool is that the same source code could be deployed in another environment such as iOS and the Web.

Course Objective

At the end of the course, participant should be able to;

• Use HTML5, jQuery and the Android ADT to develop and debug Android applications

• Develop web-based mobile apps.

• Develop Database Application.

• Develop Apps with Mapping capabilities.

Who Can Benefit

• New and experienced application developers who wish to expand their toolset and specialize in developing Android apps for business, education, or personal use.

• Developers seeking a career enhancement as an mobile applications developer.

• Anyone who started building an app and needs help putting all the pieces together.

Prerequisites

• Experience in any Programming Language

• Experience in HTML, JavaScript, PHP and web apps are preferred.

• A laptop running Windows with approximately 10GB of free disk space and 4GB of RAM.

Day 1

The Android Development Basics with HTML5

• What Android is all about.

• How an Android project is structured

• Development tools installation.

• Web server setup (Apache HTTPd).

HTML and HTML5 basics.

• Basic HTML file.

• Text, Fontface, Hyperlinks.

• Image, Paragraph, Division, Header.

• Division, Header.

• CSS.

• JavaScript & JQuery mobile framework basics.

Mobile Page Structure

• Header

• Main Content

• Footer

• Single-page template structure

• Multi-page template structure

• Buttons

• Transition

• Listview

• Panel

DAY 2

Android App Project Generation

• Installing the tools; JDK, Apache Ant, NodeJS & Android SDK.

• Configure Windows Environment Setting For Android Development For Java SDK, Android SDK and Apache ANT.

• Setting up JAVA_HOME, ANT_HOME and PATH.

• Configuration Testing.

Signing & Packaging

• Installing Apache Cordova.

• Building the Android project.

• Importing to ADT.

• App Icon and Splash Screen.

• Signing and packaging (APK).

Deployment & Distribution

• Registering Google Play publisher account.

• Uploading APK.

• Icons and Screenshots.

• Pricing & Distribution.

DAY 3

Map

· Integrate jQueryMobile with Google Maps.

· Get the users current location.

· Using preset location, ie our location.

· Displaying the Maps for specific longitude and latitude.

Preparing Online Database

· Server configuration.

· PHP and MySql connectivity.

· Gui tool to manage data.

· MySql query for selecting data.

· Using PHP to display data.

· Classic form for text and dropdownn box.

· Submitting data.

· html5 search box.

Introduction to jQuery

· jQuery syntax.

· Event.

· Selecting element and id.

· Getting HTML value and attribute.

DAY 4

jQuery continued

· Animating content.

· Manipulating content.

· AJAX with jQuery.

jQuery Mobile Form

· Markup form element, text, label, search and dropdown with jQueryMobile.

· Apply jQuery AJAX, getting and manipulating content.

· Apply result page with normal text or pop/dialogue.

· Configure server to reach from native app.

Repackaging and troubleshooting

· Apply packaging with upgrade ability to Google Play Store.

· Accessing online data from real device.

Show more