Priyadarshini Bhagwati College Of
Engineering
Priyadarshini Bhagwati College Of
Engineering
Priyadarshini Bhagwati College Of
Engineering
Deprtment of Information Technology Presents
Two days Workshop on android Application
Devlopment
Two days Workshop on android Application
Devlopment
Mr. Arsalan Adil (8 sem IT)
Mr. Vaibhav Ramuji Daf (8 sem IT)
Mr. Karan Potdukhe (8 sem IT)
Mr. Rohit Kelzarkar (8 sem IT)
Conducted by:
Coordinate by: Mr. Bhushan Gurmul (6 sem IT)
Mr.Kartik Gaddam (6 sem IT )
Today's Catalog
1) Introduction about android
2) Introduction about component
3) UI Components and XML designing
4) SpeakON (Remote Assistant voice Devlopment)
5) Glide Library
Introduction about Android
Software platform from Google and the Open Handset Alliance
July 2005, Google acquired Android, Inc.
November 2007, Open Handset Alliance formed to develop open standards for mobile devices
October 2008, Android available as open source
December 2008, 14 new members joined Android project
Features of Android
Reuse and replacement of components
Integrated browser
Optimized graphics
Media support
Camera, GPS, compass, and accelerometer
Rich development environment
Introduction about Components
Android Application Components :
1) Activity
2) Services
3) Intents
4) Content Providers
Android Application Components :
1) Activity
Present a visual user interface for one focused endeavor the user can undertake
Example: a list of menu items users can choose from
2) Services
Run in the background for an indefinite period of time
Example: calculate and provide the result to activities that need it
3) Intents
Hold the content of a message
Example: convey a request for an activity to present an image
to the user or let the user edit some text
4) Content Providers
Store and retrieve data and make it accessible to all applications
Example: Android ships with a number of content providers for common data types
(e.g., audio, video, images, personal contact information, etc.)
Xml Designing and UI Components
1) XML Designing :
XML stands for eXtensible Markup Language.
XML was designed to store and transport data.
XML was designed to be both human- and machine-readable.
Xml Designing and UI Components
2) UI Components :
Textview
Edittext
Button
Imageview
Imagebutton
Relative Layouts
Linear Layouts
1) Textview
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView android:id="@+id/text_id"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="I am a TextView" />
</LinearLayout>
2) EditText
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<EditText
android:id="@+id/simpleEditText"
android:layout_height="wrap_content"
android:layout_width="match_parent"/>
</LinearLayout>
3) Linear Layout
LinearLayout is a view group that
aligns all children in a single
direction, vertically or horizontally.
You can specify the layout direction
with the android:orientation
attribute.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:orientation="vertical" >
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/to" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/subject" />
<EditText
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="top"
android:hint="@string/message" />
<Button
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:text="@string/send" />
</LinearLayout>
4) Relative Layout
RelativeLayout is a view group that displays
child views in relative positions. The position
of each view can be specified as relative to
sibling elements (such as to the left-of or
below another view) or in positions relative to
the parent RelativeLayout area (such as
aligned to the bottom, left or center).
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk
/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="16dp"
android:paddingRight="16dp" > <EditText
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/reminder" /> <Spinner
android:id="@+id/dates"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_below="@id/name"
android:layout_alignParentLeft="true"
android:layout_toLeftOf="@+id/times" />
<Spinner android:id="@id/times"
android:layout_width="96dp"
android:layout_height="wrap_content"
android:layout_below="@id/name"
android:layout_alignParentRight="true" />
<Button android:layout_width="96dp"
android:layout_height="wrap_content"
android:layout_below="@id/times"
android:layout_alignParentRight="true"
android:text="@string/done" /></RelativeLayout>
SpeakON (Remote Assistant voice
Devlopment)
Speakon :-
1.Basic Activity
2.VectorDrawables
3.TextToSpeech and its Engine
4.SpeechRecognizer
5.RecognizerIntent
6.Permission to Record Audio
7.onPause Method
Glide Library
It is thrid party library used to manipulate images stored on remote server
Download Manager services to download images

Mobile android application devlopment workshop for beginners

  • 1.
    Priyadarshini Bhagwati CollegeOf Engineering Priyadarshini Bhagwati College Of Engineering Priyadarshini Bhagwati College Of Engineering Deprtment of Information Technology Presents Two days Workshop on android Application Devlopment Two days Workshop on android Application Devlopment Mr. Arsalan Adil (8 sem IT) Mr. Vaibhav Ramuji Daf (8 sem IT) Mr. Karan Potdukhe (8 sem IT) Mr. Rohit Kelzarkar (8 sem IT) Conducted by: Coordinate by: Mr. Bhushan Gurmul (6 sem IT) Mr.Kartik Gaddam (6 sem IT )
  • 2.
    Today's Catalog 1) Introductionabout android 2) Introduction about component 3) UI Components and XML designing 4) SpeakON (Remote Assistant voice Devlopment) 5) Glide Library
  • 3.
    Introduction about Android Softwareplatform from Google and the Open Handset Alliance July 2005, Google acquired Android, Inc. November 2007, Open Handset Alliance formed to develop open standards for mobile devices October 2008, Android available as open source December 2008, 14 new members joined Android project
  • 4.
    Features of Android Reuseand replacement of components Integrated browser Optimized graphics Media support Camera, GPS, compass, and accelerometer Rich development environment
  • 5.
    Introduction about Components AndroidApplication Components : 1) Activity 2) Services 3) Intents 4) Content Providers
  • 6.
    Android Application Components: 1) Activity Present a visual user interface for one focused endeavor the user can undertake Example: a list of menu items users can choose from 2) Services Run in the background for an indefinite period of time Example: calculate and provide the result to activities that need it
  • 7.
    3) Intents Hold thecontent of a message Example: convey a request for an activity to present an image to the user or let the user edit some text 4) Content Providers Store and retrieve data and make it accessible to all applications Example: Android ships with a number of content providers for common data types (e.g., audio, video, images, personal contact information, etc.)
  • 8.
    Xml Designing and UIComponents 1) XML Designing : XML stands for eXtensible Markup Language. XML was designed to store and transport data. XML was designed to be both human- and machine-readable.
  • 9.
    Xml Designing and UIComponents 2) UI Components : Textview Edittext Button Imageview Imagebutton Relative Layouts Linear Layouts
  • 10.
    1) Textview <?xml version="1.0"encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TextView android:id="@+id/text_id" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="I am a TextView" /> </LinearLayout>
  • 11.
    2) EditText <?xml version="1.0"encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <EditText android:id="@+id/simpleEditText" android:layout_height="wrap_content" android:layout_width="match_parent"/> </LinearLayout>
  • 12.
    3) Linear Layout LinearLayoutis a view group that aligns all children in a single direction, vertically or horizontally. You can specify the layout direction with the android:orientation attribute.
  • 13.
    <?xml version="1.0" encoding="utf-8"?> <LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingLeft="16dp" android:paddingRight="16dp" android:orientation="vertical" > <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/to" /> <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/subject" /> <EditText android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" android:gravity="top" android:hint="@string/message" /> <Button android:layout_width="100dp" android:layout_height="wrap_content" android:layout_gravity="right" android:text="@string/send" /> </LinearLayout>
  • 14.
    4) Relative Layout RelativeLayoutis a view group that displays child views in relative positions. The position of each view can be specified as relative to sibling elements (such as to the left-of or below another view) or in positions relative to the parent RelativeLayout area (such as aligned to the bottom, left or center).
  • 15.
    <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk /res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingLeft="16dp" android:paddingRight="16dp"> <EditText android:id="@+id/name" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/reminder" /> <Spinner android:id="@+id/dates" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_below="@id/name" android:layout_alignParentLeft="true" android:layout_toLeftOf="@+id/times" /> <Spinner android:id="@id/times" android:layout_width="96dp" android:layout_height="wrap_content" android:layout_below="@id/name" android:layout_alignParentRight="true" /> <Button android:layout_width="96dp" android:layout_height="wrap_content" android:layout_below="@id/times" android:layout_alignParentRight="true" android:text="@string/done" /></RelativeLayout>
  • 16.
    SpeakON (Remote Assistantvoice Devlopment) Speakon :- 1.Basic Activity 2.VectorDrawables 3.TextToSpeech and its Engine 4.SpeechRecognizer 5.RecognizerIntent 6.Permission to Record Audio 7.onPause Method
  • 17.
    Glide Library It isthrid party library used to manipulate images stored on remote server Download Manager services to download images