Android is an open source operating system developed by Google and the Open Handset Alliance. This document provides an overview of Android and how to create a sample Android project in Eclipse. It discusses Android versions, the project components like activities and services, and how to add a layout, strings, and additional activities. Creating the sample project involves adding buttons, text views and intents to launch a new activity when a button is clicked.
Android development orientation for starters v2Joemarie Amparo
This slides contains overview of android development for beginners.
I created this for the students of CCA Cebu
Special thanks to Larry Walters's presentation from which I also refer.
Android Development: Build Android App from ScratchTaufan Erfiyanto
a month ago, i have a change to held a one day workshop about Android development at Phetchaburi Rajabhat University, Thailand. The workshop is attended by students and lecturers. it is a pleasure to me to see many people that excited to learn android development.
This is a presentation slide of my presentation. in this presentation you will learn about how to build create a simple to do list app from scratch.
content of the presentation slide:
- Introduction: what Android is?
- Android development tools
- Creating Android Project
- Understanding the Project Structure
- Creating Android Emulator
- Running Android Project on Emulator
- Running Android Project on Device
- Creating User Interface
- Manipulating Widget
- Creating To Do List App
- Integrating SQLite Database to Android Project
I developed these slides for basic android training. I know some of you will laugh looing at them but if you are a beginner and want to have a rough idea on android development you can have a look at them. :)
Android - From Zero to Hero @ DEVit 2017Ivo Neskovic
The workshop deals with the design and implementation of applications for mobile devices using the Android operating system. Participants work at all stages of the development life-cycle from inception to deployment, whilst considering usability and device capabilities for a mobile application capable of meeting a functional specification. Participants are introduced to the programming environment for application development and have a hands-on approach to programming using the appropriate programming languages.
Android development orientation for starters v2Joemarie Amparo
This slides contains overview of android development for beginners.
I created this for the students of CCA Cebu
Special thanks to Larry Walters's presentation from which I also refer.
Android Development: Build Android App from ScratchTaufan Erfiyanto
a month ago, i have a change to held a one day workshop about Android development at Phetchaburi Rajabhat University, Thailand. The workshop is attended by students and lecturers. it is a pleasure to me to see many people that excited to learn android development.
This is a presentation slide of my presentation. in this presentation you will learn about how to build create a simple to do list app from scratch.
content of the presentation slide:
- Introduction: what Android is?
- Android development tools
- Creating Android Project
- Understanding the Project Structure
- Creating Android Emulator
- Running Android Project on Emulator
- Running Android Project on Device
- Creating User Interface
- Manipulating Widget
- Creating To Do List App
- Integrating SQLite Database to Android Project
I developed these slides for basic android training. I know some of you will laugh looing at them but if you are a beginner and want to have a rough idea on android development you can have a look at them. :)
Android - From Zero to Hero @ DEVit 2017Ivo Neskovic
The workshop deals with the design and implementation of applications for mobile devices using the Android operating system. Participants work at all stages of the development life-cycle from inception to deployment, whilst considering usability and device capabilities for a mobile application capable of meeting a functional specification. Participants are introduced to the programming environment for application development and have a hands-on approach to programming using the appropriate programming languages.
Android Studio is the official IDE for Android application development, based on IntelliJ IDEA. In this presentation we tried to show overall structure of android studio.
Enroll for Android application development training today. Request Demo class. Our instructor has 8+ years hands on experience in implementing Android application development in mission Critical projects. Request a Demo classes today.
Android Workshop for NTU. A getting started guide to android application development.
UPDATE (Oct 2013): An updated slide at http://samwize.com/2013/10/13/android-workshop-2013/
Android Studio is the official IDE for Android application development, based on IntelliJ IDEA. In this presentation we tried to show overall structure of android studio.
Enroll for Android application development training today. Request Demo class. Our instructor has 8+ years hands on experience in implementing Android application development in mission Critical projects. Request a Demo classes today.
Android Workshop for NTU. A getting started guide to android application development.
UPDATE (Oct 2013): An updated slide at http://samwize.com/2013/10/13/android-workshop-2013/
The Content helps those who wish to program mobile applications using android platform. The content has been used to conduct mobile application boot camps using android platform on different regions in Tanzania
Android is an open source and Linux-based Operating System for mobile devices such as smartphones and tablet computers.
Android offers a unified approach to application development for mobile devices which means developers need only develop for Android, and their applications should be able to run on different devices powered by Android.
Multiple companies producing Android phones like Samsung, HTC, LG, Motorola,LAVA and many others.
My presentation on Android to the Ruby Users of Minnesota group. Introduces the platform, demo applications I wrote and how to list your app in the Android market.
Model Attribute Check Company Auto PropertyCeline George
In Odoo, the multi-company feature allows you to manage multiple companies within a single Odoo database instance. Each company can have its own configurations while still sharing common resources such as products, customers, and suppliers.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
The French Revolution, which began in 1789, was a period of radical social and political upheaval in France. It marked the decline of absolute monarchies, the rise of secular and democratic republics, and the eventual rise of Napoleon Bonaparte. This revolutionary period is crucial in understanding the transition from feudalism to modernity in Europe.
For more information, visit-www.vavaclasses.com
How to Create Map Views in the Odoo 17 ERPCeline George
The map views are useful for providing a geographical representation of data. They allow users to visualize and analyze the data in a more intuitive manner.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
Andreas Schleicher presents at the OECD webinar ‘Digital devices in schools: detrimental distraction or secret to success?’ on 27 May 2024. The presentation was based on findings from PISA 2022 results and the webinar helped launch the PISA in Focus ‘Managing screen time: How to protect and equip students against distraction’ https://www.oecd-ilibrary.org/education/managing-screen-time_7c225af4-en and the OECD Education Policy Perspective ‘Students, digital devices and success’ can be found here - https://oe.cd/il/5yV
2. Outline:
Overview on Android
Installing ADT on Eclipse
Explore Project Components
Sample Project
3. Android is an open mobile phone platform that was
developed by Google and later by Open Handset
Alliance. Google defines Android as a "software
stack" for mobile phones.
Software stack is made up of operating system(the
platform on which everything runs), the middleware
(the programming that allows applications to talk to
a network and to one another) and the applications
(the actual programs that phone will run)
4. July 2005 - Google Inc. bought from Danger Inc
Open Handset Alliance was formed headed by Google
which is composed of companies like Intel, T-
Mobile, Spring Nextel and more.
In 2008, Android became available as an open source
and ASOP(Android Open Source Project) is
responsible for maintaining and development of
android.
February 2009, the first android version was released,
Android 1.1. for Mobile G1.
6. Note: When developing an application, consider the market share of the android version. The
higher the market share, the higher number your target market is.
7. Note: Based on my development experience, ADT can run on at least Dual Core with at
least 2GB RAM.
9. Activity
• Present a visual user interface for one focused endeavor the user can undertake
• Example: a list of menu items users can choose from
Services
• Run in the background for an indefinite period of time
• Example: calculate and provide the result to activities that need it
Broadcast Receivers
• Receive and react to broadcast announcements
• Example: announcements that the time zone has changed
Content Providers
• Store and retrieve data and make it accessible to all applications
• Example: Android ships with a number of content providers for common
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
10.
11. public class CCSActivity extends Activity {
/** Called when the activity is first created.
*/
@Override
public void onCreate(Bundle
savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
12. Run in the background
Can continue even if Activity that started it dies
Should be used if something needs to be done while the
user is not interacting with application
Otherwise, a thread is probably more applicable
Should create a new thread in the service to do work in,
since the service runs in the main thread
Can be bound to an application
In which case will terminate when all applications bound to
it unbind
Allows multiple applications to communicate with it via a
common interface
Needs to be declared in manifest file
Like Activities, has a structured life cycle
13.
14. SRC
• The project source code
GEN
• Auto generated code
• Example: R.java
Included libraries
Resources
• Drawables
• Layout
• Values like strings
Manifest File
• A must have xml file. Contains essential information about the
system to the android system
15.
16. Auto-generated: you shouldn’t edit it
Contains IDs of the project resources
Enforces good software engineering
Use findViewById and Resources object to get
access to the resources
Ex. Button b = (Button)findViewById(R.id.button1)
Ex. getResources().getString(R.string.hello));
17.
18.
19. Eclipse has a great UI creator
Generates the XML for you
Composed of View objects
Can be specified for portrait and landscape
mode
Use same file name, so can make completely
different UIs for the orientations without
modifying any code
20.
21. Click ‘Create’ to make layout modifications
When in portrait mode can select ‘Portrait’ to
make a res sub folder for portrait layouts
Likewise for Landscape layouts while in landscape mode
Will create folders titled ‘layout-port’ and ‘layout-land’
Note: these ‘port’ and ‘land’ folders are examples
of ‘alternate layouts’, see here for more info
http://developer.android.com/guide/topics/resources/providing-
resources.html
Avoid errors by making sure components have the
same id in both orientations, and that you’ve
tested each orientation thoroughly
25. 1. Lunching a new activity without expecting without expecting a result
2. Lunching a new activity and expecting a result when it finished.
CalledActivity.class
26. On Eclipse IDE. Go To File >
New > Project > Android
Project
See image at the side for the
prompt that appear. Click
next button.
27. Select android version.
Tip: select the latest OS
version available. You can
add minimum and target SDK
on your manifest file to
support earlier android
versions.
28. Provide package name of
your project. Valid package
name consist of two names
separated by a period.
29. Provide package name of
your project. Valid package
name consist of two names
separated by a period.
Optional: Change minimum
SDK for the lowest android
version your application will
support.
Hit on finish
30. Under res/layout on your In main.xml:
project explorer. Open <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
main.xml. Create a layout android:layout_height="fill_parent"
android:orientation="vertical" >
like this: <TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button1" />
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button 2" />
<Button
android:id="@+id/button3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button 3" />
</LinearLayout>
<EditText
android:id="@+id/editText1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10" >
<requestFocus />
</EditText>
</LinearLayout>
31. Under res/values on your
project explorer. Open
strings.xml.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World, SampleProjectActivity!</string>
<string name="app_name">SampleProject</string>
<string name="button1">Button 1 Clicked.</string>
</resources>
NOTE: string with name button1 is being referenced by Button 1 android:text property.
See main.xml in your layout.
32. Under SRC on your project public class SampleProjectActivity extends Activity implements OnClickListener{
explorer. Open
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
SampleProjectActivity.java.
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Toast.makeText(this, "Hello.", Toast.LENGTH_LONG).show();
//referencing components in our layout as set in setContentView, - main.xml
Change code to this: //findViewById is used hence we components in our layout will be called
//through their ids as set in android:id properties. See main.xml in your layout.
Button btn1 = (Button)findViewById(R.id.button1);
//one way in handling click event
See comments for better btn1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
understand. application
//Toast is a prompt that will notify user of what has happened in the
//but not requiring user an action.
Toast.makeText(getApplication(), "Button 1 Clicked",
Toast.LENGTH_LONG).show();
}
});
import android.app.Activity; Button btn2 = (Button)findViewById(R.id.button2);
import android.content.Intent; Button btn3 = (Button)findViewById(R.id.button3);
//Other way of handling event inside an activity
import android.os.Bundle; btn2.setOnClickListener(this);
btn3.setOnClickListener(this);
import android.view.View; }
@Override
import public void onClick(View v) {
// TODO Auto-generated method stub
android.view.View.OnClickListener; switch(v.getId())
{
import android.widget.Button; case R.id.button2:
EditText editText = (EditText)findViewById(R.id.editText1);
import android.widget.EditText; editText.setText("Button 2 Clicked!");
break;
case R.id.button3:
import android.widget.Toast; // Intent with out waiting for result.
// This is creating a new view and passing the new controll to the next view.
Intent intent = new Intent(this, NextActivity.class);
startActivity(intent);
break;
}
}
}
33. Create NextActivity.java import android.app.Activity;
import android.os.Bundle;
Right click SRC folder > New import android.widget.Button;
import android.widget.TextView;
> Class. public class NextActivity extends Activity{
Change code to this: @Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
// you can have a new layout. but for this example
// we will be reusing the main.xml as our layout.
// we will just manipulate the text to inform user that
//a new activity has been created.
setContentView(R.layout.main);
// setTitle - change the title of the next view
setTitle("Next Activity");
//setting page title
TextView pageTitle =
(TextView)findViewById(R.id.pagetitle);
pageTitle.setText("Hello, You are now in the Next
Activity Class.");
Button btn1 = (Button)findViewById(R.id.button1);
btn1.setText("Option 1");
Button btn2 = (Button)findViewById(R.id.button2);
btn2.setText("Option 2");
Button btn3 = (Button)findViewById(R.id.button3);
btn3.setText("Option 3");
}
}
34. Open Manifest.xml in your <?xml version="1.0" encoding="utf-8"?>
project explorer. <manifest
xmlns:android="http://schemas.android.com/apk/re
s/android"
Register NextActivity class to package="com.sample"
android:versionCode="1"
your project. android:versionName="1.0" >
Your new manifest file must <uses-sdk android:minSdkVersion="8"
android:targetSdkVersion="15"/>
look like the code at the <application
android:icon="@drawable/ic_launcher"
side. android:label="@string/app_name" >
<activity
Save all the changes android:name=".SampleBradActivity"
android:label="@string/app_name" >
<intent-filter>
<action
android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHE
R" />
</intent-filter>
</activity>
<activity
android:name=".NextActivity"
android:label="@string/app_name" />
</application>
</manifest>
35. Right click your project name in your project explorer > RUN AS
> ANDROID APPLICATION.
Emulator will boot up. Wait until home screen is shown.
Your application will be displayed on the screen.
You can now enjoy the application.
Congratulations!!!