android application development intruduction presentation · angularjs, php & mysql, c, c++,...

20
Android Application Development By : Shibaji Debnath

Upload: others

Post on 02-Aug-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Android Application Development Intruduction Presentation · AngularJS, PHP & MySQL, C, C++, JAVA, ANDROID, PhoneGap/Cordova. Start Android. Android Features Videos. Android Vision

Android Application Development

By : Shibaji Debnath

Page 2: Android Application Development Intruduction Presentation · AngularJS, PHP & MySQL, C, C++, JAVA, ANDROID, PhoneGap/Cordova. Start Android. Android Features Videos. Android Vision

About Me

• I have over 10 years experience in IT Industry.• I have started my career as Java Software Developer.• I worked in various multinational company.• Also I have good knowledge about UX designing.• Now I am an entrepreneur and also IT Professional Trainer.• My Skills are Designing with Photoshop, HTML, CSS, JavaScript, JQuery,

AngularJS, PHP & MySQL, C, C++, JAVA, ANDROID, PhoneGap/Cordova.

Page 3: Android Application Development Intruduction Presentation · AngularJS, PHP & MySQL, C, C++, JAVA, ANDROID, PhoneGap/Cordova. Start Android. Android Features Videos. Android Vision

Start Android

Page 4: Android Application Development Intruduction Presentation · AngularJS, PHP & MySQL, C, C++, JAVA, ANDROID, PhoneGap/Cordova. Start Android. Android Features Videos. Android Vision

Android Features Videos

Page 5: Android Application Development Intruduction Presentation · AngularJS, PHP & MySQL, C, C++, JAVA, ANDROID, PhoneGap/Cordova. Start Android. Android Features Videos. Android Vision

Android Vision

Page 6: Android Application Development Intruduction Presentation · AngularJS, PHP & MySQL, C, C++, JAVA, ANDROID, PhoneGap/Cordova. Start Android. Android Features Videos. Android Vision

Introduction

• Android is not just an operating system• Middleware• Applications• Platform Bright and complex.• Extensible and modular.• Customizable.

Page 7: Android Application Development Intruduction Presentation · AngularJS, PHP & MySQL, C, C++, JAVA, ANDROID, PhoneGap/Cordova. Start Android. Android Features Videos. Android Vision

Overview (Android System Architecture)

Page 8: Android Application Development Intruduction Presentation · AngularJS, PHP & MySQL, C, C++, JAVA, ANDROID, PhoneGap/Cordova. Start Android. Android Features Videos. Android Vision

Environment Setup

• JDK : 1.7 or 1.8• IDE : Eclipse / Android Studio / NetBeans• SDK : AndroidSDK / Phonegap

Page 9: Android Application Development Intruduction Presentation · AngularJS, PHP & MySQL, C, C++, JAVA, ANDROID, PhoneGap/Cordova. Start Android. Android Features Videos. Android Vision

App Contents / Components

• Activity• Intent• Broadcast Receiver• Content Provider• Service

Page 10: Android Application Development Intruduction Presentation · AngularJS, PHP & MySQL, C, C++, JAVA, ANDROID, PhoneGap/Cordova. Start Android. Android Features Videos. Android Vision

Configuration : Setup

• Install the jdk• Download The SDK Bundle from http://developer. android.com/sdk/• Add Directory <directory_sdk> Environment Variable(PATH)• Installation of plugins eclipse • Help > Software Updates > Find and Install• Search for new features to install > next.• New Remote Site. Add following url : http://dlssl.google.com/android/ > Ok• Restart Eclipse• Window > Preference > android > browse

• Android Studio Bundle click to install.

Page 11: Android Application Development Intruduction Presentation · AngularJS, PHP & MySQL, C, C++, JAVA, ANDROID, PhoneGap/Cordova. Start Android. Android Features Videos. Android Vision

Create Demo App

Page 12: Android Application Development Intruduction Presentation · AngularJS, PHP & MySQL, C, C++, JAVA, ANDROID, PhoneGap/Cordova. Start Android. Android Features Videos. Android Vision

Create Demo App

Page 13: Android Application Development Intruduction Presentation · AngularJS, PHP & MySQL, C, C++, JAVA, ANDROID, PhoneGap/Cordova. Start Android. Android Features Videos. Android Vision

Create Demo App : Project ExplorerS.N. Folder, File & Description

1

srcThis contains the .java source files for your project. By default, it includes an MainActivity.javasource file having an activity class that runs when your app is launched using the app icon.

2gen This contains the .R file, a compiler-generated file that references all the resources found in your project. You should not modify this file.

3bin This folder contains the Android package files .apk built by the ADT during the build process and everything else needed to run an Android application.

Page 14: Android Application Development Intruduction Presentation · AngularJS, PHP & MySQL, C, C++, JAVA, ANDROID, PhoneGap/Cordova. Start Android. Android Features Videos. Android Vision

Create Demo App : Project ExplorerS.N. Folder, File & Description

4res/drawable-hdpi This is a directory for drawable objects that are designed for high-density screens.

5 res/layoutThis is a directory for files that define your app's user interface.

6res/valuesThis is a directory for other various XML files that contain a collection of resources, such as strings and colors definitions.

7AndroidManifest.xml This is the manifest file which describes the fundamental characteristics of the app and defines each of its components.

Page 15: Android Application Development Intruduction Presentation · AngularJS, PHP & MySQL, C, C++, JAVA, ANDROID, PhoneGap/Cordova. Start Android. Android Features Videos. Android Vision

Sample Code : MainActivity.javapackage com.example.helloworld; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.MenuItem; import android.support.v4.app.NavUtils; public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_main, menu); return true; } }

Page 16: Android Application Development Intruduction Presentation · AngularJS, PHP & MySQL, C, C++, JAVA, ANDROID, PhoneGap/Cordova. Start Android. Android Features Videos. Android Vision

Sample Code : AndroidManifest.xml<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.helloworld" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="15" /> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name=".MainActivity" android:label="@string/title_activity_main" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> </application> </manifest>

Page 17: Android Application Development Intruduction Presentation · AngularJS, PHP & MySQL, C, C++, JAVA, ANDROID, PhoneGap/Cordova. Start Android. Android Features Videos. Android Vision

Sample Code : String.xml

<resources> <string name="app_name">HelloWorld</string> <string name="hello_world">Hello world!</string> <string name="menu_settings">Settings</string> <string name="title_activity_main">MainActivity</string> </resources>

Page 18: Android Application Development Intruduction Presentation · AngularJS, PHP & MySQL, C, C++, JAVA, ANDROID, PhoneGap/Cordova. Start Android. Android Features Videos. Android Vision

Sample Code : activity_main.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" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:padding="@dimen/padding_medium" android:text="@string/hello_world" tools:context=".MainActivity" /> </RelativeLayout>

Page 19: Android Application Development Intruduction Presentation · AngularJS, PHP & MySQL, C, C++, JAVA, ANDROID, PhoneGap/Cordova. Start Android. Android Features Videos. Android Vision

Running Application

Page 20: Android Application Development Intruduction Presentation · AngularJS, PHP & MySQL, C, C++, JAVA, ANDROID, PhoneGap/Cordova. Start Android. Android Features Videos. Android Vision

So, Let's Start Learning……..

Thank you for your attention.