Android Studio Training 16 & 17 December 2017



NEXT - 10th iteration Android Studio 2.3 Training 16 & 17 December 2017 .
  • Venue: Computer Lab 5, FSTM,KUIS ( maps http://bit.ly/mapfstm 
    ).
  • Time 0900am - 5pm
  • Open TO ALL
  • Fee: Community Service - pay what you can afford (meals & cert not provided)
  • Registration/Payment queries  Khairul 0129034614
Pre-requisite: Good if you know Java or any Programming language

Requirements:
  • BYOL – Bring your own Laptop with RAM capacity >4GB. Install JDK 1.8 & Android Studio http://developer.android.com/sdk/ 
  • Make sure to install JDK1.8 & latest Android Studio prior to attending this training.
  • Bring also a USB data cable and your Android device.

What is Android Studio?
Android Studio is the official integrated development environment (IDE) for Android platform development.

Based on JetBrains' IntelliJ IDEA software, Android Studio is designed specifically for Android development. It is available for download on Windows, Mac OS X and Linux, and replaced Eclipse Android Development Tools (ADT) as Google's primary IDE for native Android application development.

What will be covered in this training?
The participants will be guided to create an Android app project, and how to handle the project codes and resources. We will add basic GUIs such as textbox, label, button, image, menus, screens and activities.
The second day will be covering multiple screen interactions, local database, and maps. At the end of the training we will generate Android installer file (APK) and publish it to the Google Playstore.

Course Outline

Pre-requisite: Know Java OOProgramming
Make sure to install JDK1.8 & latest Android Studio prior to attending this training. 
Day 1
0830am - 0900am

Registration
0900am - 1030am Intro to Android Apps Development
(installation will not be covered, kindly install everything prior to attending the training)
1030am - 1130am Beginning Android Project ( bit.ly/newandroidproject )
1130am - 1230pm GUI Editor
1230pm - 200pm Lunch Break
2.00pm - 3.00pm Better GUI design
3.00pm - 4.00pm Swipe ViewPager
4.00pm - 5.00pm Multiple Activities & Intent
Generate Signed APK
Publishing App + view bit.ly/publishandroidapp
.
Day2
0900am - 1100am
SQLite
1100am - 1230pm Local Database
http://blog.kerul.net/2013/08/android-database-p1-intro-sqlite-db.html 
1230pm - 2.00pm Lunch Break
2.00pm - 3.00pm Google Maps Activity + view bit.ly/kerulmaps
3.00pm - 4.30pm Generate Signed APK
Publishing App + view bit.ly/publishandroidapp
4.30pm – 5.00pm Closing


Reference/textbook
bit.ly/android7book



Registration Form

Insert Record JSON Android in localhost environment

Synopsis

  • This tutorial is the continuation of Login JSON Android using Login Activity
  • STEP 1: Preparing the online database facilities in localhost.
  • STEP 2: Preparing the PHP script to insert a new record.
  • STEP 3: Coding of The Android client

insert-record-screen-in-actionprogress-dialog-saving-android-jsoninsert-record-screen-confirmation

 

STEP 1: Preparing the online database facilities in localhost.

Our Localhost environment is on Xampp as usual.

Importing the database to the online database. Download the full code below and you will find the SQL-dump file. Import the file and it will create a database named training.

training-database-sql

ProgressDialog in Android

This is the good way to use progress dialog in Android
Code coloring by http://hilite.me 
Source from http://stackoverflow.com/questions/10446125/how-to-show-progress-dialog-in-android

 

//example code on using Progress Dialog in Android
private class YourAsyncTask extends AsyncTask<Void, Void, Void> {

   ProgressDialog dialog = new ProgressDialog(IncidentFormActivity.this);

   @Override
    protected void onPreExecute() {
        //set message of the dialog
        dialog.setMessage("Loading...");
        //show dialog
        dialog.show();
        super.onPreExecute();
    }

   protected Void doInBackground(Void... args) {
    // do background work here
    return null;
   }

   protected void onPostExecute(Void result) {
     // do UI work here
     if(dialog != null && dialog.isShowing()){
       dialog.dismiss()
     }

  }
}

Login JSON Android using Login Activity

I’ve been trying to release this tutorial quite a while. At last after a long hard effort. Since HttpClient is not supported any more in Android SDK 23, I have to resort to org.json.JSONObject and java.net.HttpURLConnection library to do online database with JSON.

The objective of this tutorial is to log-in from a mobile client with the username and password stored in an online database facility.

skrin-loginskrin-login-success

STEP 1: Create a new Android project, this time choose the LoginActivity .

Popular Posts