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

Contact Us at blog.kerul.net

Powered by EMF HTML Contact Form

Bootstrap Template for PHP database system - MyCompanyHR

HTML without framework is dull. Doing hard-coded CSS and JS are quite difficult with no promising result on cross platform compatibility. So I decided to explore BootStrap as they said it is the most popular web framework. What is BootStrap? - Bootstrap is the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first web sites. (  http://www.w3schools.com/bootstrap/   ) Available here -  http://getbootstrap.com/ Why you need Flat-UI? Seems like a beautiful theme to make my site look professional. Anyway you could get variety of BootStrap theme out there, feel free to select here  http://bootstraphero.com/the-big-badass-list-of-twitter-bootstrap-resources/ Flat-UI is from DesignModo -   http://designmodo.com/flat/ Web Programming MyCompanyHR – PHP & MySQL mini project (with Boostrap HTML framework) Template 1: Template for the Lab Exercise. This is a project sample of a staff record management system. It has the PHP structured co

The Challenges of Handling Proverbs in Malay-English Machine Translation – a research paper

*This paper was presented in the 14th International Conference on Translation 2013 ( http://ppa14atf.usm.my/ ). 27 – 29 August 2013, Universiti Sains Malaysia, Penang. The PDF version is here: www.scribd.com/doc/163669571/Khirulnizam-The-Challenges-of-Automated-Detection-and-Translation-of-Malay-Proverb The test data is here: http://www.scribd.com/doc/163669588/Test-Data-for-the-Research-Paper-the-Challenges-of-Handling-Proverbs-in-Malay-English-Machine-Translation Khirulnizam Abd Rahman, Faculty of Information Science & Technology, KUIS Abstract: Proverb is a unique feature of Malay language in which a message or advice is not communicated indirectly through metaphoric phrases. However, the use of proverb will cause confusion or misinterpretation if one does not familiar with the phrases since they cannot be translated literally. This paper will discuss the process of automated filtering of Malay proverb in Malay text. The next process is translation. In machine translatio

ASK kerul pls...

Ask me please, just click the button... Any question related to the web, PHP, database, internet, this blog, my papers, or anything. I'll answer to you as soon as I can, if related to my domain. If not I'll try to find out from Google and provide you a link that can help you solve a problem. Sincerely, kerul. ASK kerul pls... http://kerul.blogspot.com