Similar documents
EMBEDDED SYSTEMS PROGRAMMING Application Tip: Switching UIs

Tip Calculator. xmlns:tools=" android:layout_width="match_parent"

Produced by. Mobile Application Development. Higher Diploma in Science in Computer Science. Eamonn de Leastar

Android Apps Development for Mobile and Tablet Device (Level I) Lesson 2

EMBEDDED SYSTEMS PROGRAMMING Application Tip: Managing Screen Orientation

Android - JSON Parser Tutorial

MAD ASSIGNMENT NO 2. Submitted by: Rehan Asghar BSSE AUGUST 25, SUBMITTED TO: SIR WAQAS ASGHAR Superior CS&IT Dept.

SD Module-1 Android Dvelopment

Produced by. Mobile Application Development. Higher Diploma in Science in Computer Science. Eamonn de Leastar

EMBEDDED SYSTEMS PROGRAMMING UI Specification: Approaches

PENGEMBANGAN APLIKASI PERANGKAT BERGERAK (MOBILE)

EMBEDDED SYSTEMS PROGRAMMING Application Tip: Saving State

Applied Cognitive Computing Fall 2016 Android Application + IBM Bluemix (Cloudant NoSQL DB)

Create Parent Activity and pass its information to Child Activity using Intents.

Android Application Development. By : Shibaji Debnath

ELET4133: Embedded Systems. Topic 15 Sensors

Mobile Software Development for Android - I397

M.A.D ASSIGNMENT # 2 REHAN ASGHAR BSSE 15126

Fragment Example Create the following files and test the application on emulator or device.

1. Location Services. 1.1 GPS Location. 1. Create the Android application with the following attributes. Application Name: MyLocation

Produced by. Mobile Application Development. Eamonn de Leastar

EMBEDDED SYSTEMS PROGRAMMING Android Services

Mobile Application Development Lab [] Simple Android Application for Native Calculator. To develop a Simple Android Application for Native Calculator.

Android - Widgets Tutorial

Produced by. Mobile Application Development. Higher Diploma in Science in Computer Science. Eamonn de Leastar

Android Apps Development for Mobile Game Lesson 5

APPENDIX CODE TO STORE THE BUTTON MENU AND MOVE THE PAGE

MAD ASSIGNMENT NO 3. Submitted by: Rehan Asghar BSSE AUGUST 25, SUBMITTED TO: SIR WAQAS ASGHAR Superior CS&IT Dept.

Time Picker trong Android

Android Programs Day 5

Fragments. Lecture 11

Intents. Your first app assignment

ITU- FAO- DOA- TRCSL. Training on. Innovation & Application Development for E- Agriculture. Shared Preferences

CSE 660 Lab 3 Khoi Pham Thanh Ho April 19 th, 2015

StoppUhr. <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="start1"

Basic GUI elements - exercises

Tutorial: Setup for Android Development

An Overview of the Android Programming

Topics of Discussion

TextView Control. EditText Control. TextView Attributes. android:id - This is the ID which uniquely identifies the control.

Database Development In Android Applications

使用 TensorFlow 設計矩陣乘法計算並轉移執行在 Android 上 建國科技大學資管系 饒瑞佶 2017/8

Vienos veiklos būsena. Theory

Group B: Assignment No 8. Title of Assignment: To verify the operating system name and version of Mobile devices.


Eng. Jaffer M. El-Agha Android Programing Discussion Islamic University of Gaza. Data persistence

TPCT s College of Engineering, Osmanabad. Laboratory Manual SDL-II. Mobile Application Development (Android) For. Third Year Students (CSE)

android-espresso #androidespresso

PROGRAMMING APPLICATIONS DECLARATIVE GUIS

Arrays of Buttons. Inside Android

M.A.D Assignment # 1

// MainActivity.java ; Noah Spenser; Senior Design; Diabetic Breathalyzer

LAB MANUAL SITTTR KALAMASSERY SMART DEVICE PROGRAMMING LAB. SITTTR Smart Device Programming Manual Page 1

<uses-permission android:name="android.permission.internet" />

User Interface Development in Android Applications

ANDROID PROGRAMS DAY 3

Introduction to Android Development

Chapter 5 Flashing Neon FrameLayout

South Africa

Learning Android Canvas

Tutorial: Setup for Android Development

Lecture 14. Android Application Development

Mobile Health Sensing with Smart Phones

1. Explain the architecture of an Android OS. 10M The following diagram shows the architecture of an Android OS.

Create a local SQL database hosting a CUSTOMER table. Each customer includes [id, name, phone]. Do the work inside Threads and Asynctasks.

Text Properties Data Validation Styles/Themes Material Design

Android CardView Tutorial

THE CATHOLIC UNIVERSITY OF EASTERN AFRICA A. M. E. C. E. A

Chapter 8 Positioning with Layouts

UNDERSTANDING ACTIVITIES

Data Persistence. Chapter 10

Software Practice 3 Before we start Today s lecture Today s Task Team organization

Android UI Development

Computer Science E-76 Building Mobile Applications

Android Navigation Drawer for Sliding Menu / Sidebar

INTRODUCTION TO ANDROID

05. RecyclerView and Styles

Android Basics. Android UI Architecture. Android UI 1

Getting Started. Dr. Miguel A. Labrador Department of Computer Science & Engineering

Debojyoti Jana (Roll ) Rajrupa Ghosh (Roll ) Sreya Sengupta (Roll )

Create new Android project in Android Studio Add Button and TextView to layout Learn how to use buttons to call methods. Modify strings.

Our First Android Application

Building MyFirstApp Android Application Step by Step. Sang Shin Learn with Passion!

ANDROID APPS DEVELOPMENT FOR MOBILE AND TABLET DEVICE (LEVEL I)

ANDROID APPS DEVELOPMENT FOR MOBILE AND TABLET DEVICE (LEVEL I)

ABSTRACT I. INTRODUCTION. E. Susmitha, M. Himabindu M.Tech Academic Assistant, IIIT Rk Valley, Rgukt, Andhra Pradesh, India

Android Apps Development for Mobile and Tablet Device (Level I) Lesson 4. Workshop

<uses-permission android:name="android.permission.internet"/>

LifeStreet Media Android Publisher SDK Integration Guide

android:layout_margintop="5dp" > <EditText android:layout_width="210dp"

Diving into Android. By Jeroen Tietema. Jeroen Tietema,

By Ryan Hodson. Foreword by Daniel Jebaraj

Adapter.

Android App Development. Mr. Michaud ICE Programs Georgia Institute of Technology

EMBEDDED SYSTEMS PROGRAMMING Application Basics

List-Based Widgets: Lists, Grids, and Scroll Views

ActionBar. import android.support.v7.app.actionbaractivity; public class MyAppBarActivity extends ActionBarActivity { }

An Android Studio SQLite Database Tutorial

COMP61242: Task /04/18

BSCS 514- Computer Graphics. Course Supervisor : Dr. Humera Tariq Hands on Lab Sessions: Mr. Faraz Naqvi

Transcription:

Statistics http://www.statista.com/topics/840/smartphones/ http://www.statista.com/topics/876/android/ http://www.statista.com/statistics/271774/share-of-android-platforms-on-mobile-devices-with-android-os/ Resources Google MOOCs (eg Udacity, Coursera) https://www.thenewboston.com/forum/ (eg https://www.youtube.com/watch?v=qabqglgkd3y) https://www.youtube.com/channel/ucfqknueqenrqq1nncbe6eqq PRABEESH R K Youtube Channel SQLite https://www.youtube.com/watch?v=lz8kjg4pg4y PRABEESH R K Youtube Channel http://www.vogella.com/tutorials/androidintent/article.html https://parse.com/ Multiple Activities https://www.youtube.com/watch?v=viwazaar-ve https://www.youtube.com/watch?v=x0i5vjfariu Login Register Main activities Free ebooks and Additional Resources http://www.techotopia.com/index.php/android_studio_development_essentials http://www.onlineprogrammingbooks.com/android/ Getting started Download Java Development Kit JDK (Android uses Java) Set your system variable to point to path containing JDK (Start - Control Panel Advanced Settings) Download and install Android Studio Beginning New Project Sketch your app (planning and design phase is important) Begin Android Studio Think of an activity as a screen Press Tab to select predictive commands offered by IDE Press Alt and Enter to add the relevant Import. Commands to your source code to import the necessary classes

Different layout types

Lifecycle and Override Methods public class MainActivity extends ActionBarActivity { // Press ALT + INSERT key and select Override Methods to construct Method code @Override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); @Override protected void onstart() { super.onstart(); @Override protected void onpause() { super.onpause();

Exporting your APP *.apk files Download the apk files and use the following password to open source code in Android Studio KeyStore and Key Passwords respectively for apk files : csn1234 and csn12345

Tester App activity_test.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingleft="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margin" android:paddingtop="@dimen/activity_vertical_margin" android:paddingbottom="@dimen/activity_vertical_margin" tools:context=".testactivity"> <TextView android:id="@+id/messagetextview" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hello_world" android:padding="10dp" android:textsize="20sp" android:textstyle="bold" tools:context=".testactivity" />

</RelativeLayout> TestActivity.java package com.raymundoconnor.tester; import android.support.v7.app.actionbaractivity; import android.os.bundle; import android.view.menu; import android.view.menuitem; import android.widget.textview; public class TestActivity extends ActionBarActivity { @Override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_test); TextView message = (TextView)findViewById(R.id.messageTextView); message.settext("success!");

Widgets and Properties ColoursandProperties app Drag widgets onto Layout and change properties (eg ID, Text, TextColor,..) in the properties palette as shown. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingleft="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margin" android:paddingtop="@dimen/activity_vertical_margin" android:paddingbottom="@dimen/activity_vertical_margin" tools:context=".mainactivity" android:background="#006699" > <TextView android:layout_width="wrap_content"

android:layout_height="wrap_content" android:textappearance="?android:attr/textappearancelarge" android:text="properties Palettte" android:id="@+id/textview" android:layout_alignparenttop="true" android:layout_alignparentleft="true" android:layout_alignparentstart="true" android:layout_margintop="44dp" android:textcolor="#ffffff" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textappearance="?android:attr/textappearancemedium" android:text="text property" android:id="@+id/textview2" android:textcolor="#ffff00" android:layout_below="@+id/textview" android:layout_alignright="@+id/textview" android:layout_alignend="@+id/textview" android:layout_margintop="39dp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textappearance="?android:attr/textappearancemedium" android:text="textcolor Property #00ffff" android:id="@+id/textview3" android:layout_below="@+id/textview2" android:layout_alignleft="@+id/textview2" android:layout_alignstart="@+id/textview2"

android:layout_margintop="42dp" android:textcolor="#00ffff" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textappearance="?android:attr/textappearancesmall" android:text="change App Theme" android:id="@+id/textview4" android:layout_centervertical="true" android:layout_alignleft="@+id/textview3" android:layout_alignstart="@+id/textview3" android:textcolor="#ffffff" /> </RelativeLayout>

ClickEvent public class MainActivity extends ActionBarActivity { @Override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); Button buttonlabel = (Button)findViewById(R.id.buttonLabel); buttonlabel.setonclicklistener( new Button.OnClickListener(){ public void onclick(view v){ TextView TextviewLabel = (TextView) findviewbyid(r.id.textviewlabel); TextviewLabel.setText("Design great apps"); );