Skip to main content

Cross-platform Android Apps Development

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.

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

 

<!DOCTYPE html> 
<html>
<head>
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/jquery.mobile-1.4.5.min.css" />
<script src="js/jquery-1.11.1.min.js"></script>
   1:  
   2:     <script src="js/jquery.mobile-1.4.5.min.js">
</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.

 


 



 

Comments

Popular posts from this blog

Several English proverbs and the Malay pair

Or you could download here for the Malay proverbs app – https://play.google.com/store/apps/details?id=net.kerul.peribahasa English proverbs and the Malay pair Corpus Reference: Amir Muslim, 2009. Peribahasa dan ungkapan Inggeris-Melayu. DBP, Kuala Lumpur http://books.google.com.my/books/about/Peribahasa_dan_ungkapan_Inggeris_Melayu.html?id=bgwwQwAACAAJ CTRL+F to search Proverbs in English Definition in English Similar Malay Proverbs Definition in Malay 1 Where there is a country, there are people. A country must have people. Ada air adalah ikan. Ada negeri adalah rakyatnya. 2 Dry bread at home is better than roast meat home's the best hujan emas di negeri orang,hujan batu di negeri sendiri Betapa baik pun tempat orang, baik lagi tempat sendiri. 3 There's no accounting for tastes We can't assume that every people have a same feel Kepala sama hitam hati lain-lain. Dalam kehidupan ini, setiap insan berbeza cara, kesukaan, perangai, tabia

WebDev

http://blog.kerul.net PHP DEVELOPMENT TOOLS Download the XAMPP latest version from www.apachefriends.org . This installation file contains the Apache web server, PHP 5 and 4 interpreter, and the MySQL 5 Community edition. - download latest version MozillaFireFox (OpenSource web browser firefox) – download latest version Google Chrome – fastest web browser on earcth – fast download chrome here TEACHING PLAN Download the teaching plan here for Web/Internet Programming ( download ) NOTES HTML references HTML Editor -  http://www.sublimetext.com/ Lab 1: HTML Basics -  http://www.w3schools.com/html/ Lab 2: Responsive Design:  http://www.w3schools.com/html/html_responsive.asp Lab 3: HTML Forms  http://www.w3schools.com/html/html_forms.asp Lab 4: HTML 5  http://www.w3schools.com/html/html5_intro.asp Lab 5: Bootstrap for responsive Web -  http://www.w3schools.com/bootstra

Submit your blog address here

Create your own blog and send the address by submitting the comment of this article. Make sure to provide your full name, matrix and URL address of your blog. Refer to the picture below. Manual on developing a blog using blogger.com and AdSense, download here … Download Windows Live Writer (a superb offline blog post editor)

Applications of Web 2.0

Web 2.0 describes the changing trends in the use of World Wide Web technology and web design that aim to enhance creativity , secure information sharing, collaboration and functionality of the web. Web 2.0 concepts have led to the development and evolution of web-based communities and hosted services , such as social-networking sites , video sharing sites , wikis , blogs . Find a website or web application that conform to the criteria of Web 2.0. Put the name of the application and the URL in the comment below. Please provide your full name and matrix number. Make sure the application you choose is not already chosen by your friend in the previous comment.

Contact Us at blog.kerul.net

Powered by EMF HTML Contact Form