SlideShare uma empresa Scribd logo
1 de 22
Android App
CALCULATOR
MUHAMMAD SHAHAB AHMAD R.NO
“142”
ASAD ULLAH R.NO “168”
SECTION „C‟ BS(CS) HONS IBMS
THE UNIVERSITY OF AGRICULTURE,
PESHAWAR,KP.
ANDROID
 A Java program (such as an
Android application
program) undergoes several
translation steps between
the time you write the
program and the time a
processor runs the program.
 One of the reasons is
simple: Instructions that are
convenient for processors to
run are not convenient for
people to write.
JAVA SOURCE CODE:
public static void sum()
{
Int a=3,b=4;
System.out.println(“sum of a
and b”);
System.out.println(a+b);
}
Public static void main(String
arg[]){
Sum();
}
}
ANDROID
 The processors in
computers, phones, and
other devices don‟t
normally follow
instructions like the
instructions in Source
code.
 i.e processors don‟t
follow Java source code
instructions.
 Instead, processors
follow cryptic (having a
secret or hidden
meaning) instructions like
Java Byte code
0 aload_0
1 getfield #19
<com/allmycode/samples/MyA
ctivity/room
Lcom/allmycode/samples/Roo
m;>
4 getfield #47
<com/allmycode/samples/Roo
m/numGuests I>
7 ifne 22 (+15)
10 aload_0
……
……
……
ANDROID
ANDROID
 When we write a Java
program, we write source
code instructions.
 After writing the source
code, we run a program (that
is, we apply a tool) to the
source code. The program is
a COMPILER: It translates
the source code instructions
into Java byte code
instructions.
 In other words, the compiler
translates code that we can
write and understand into
Java Byte code
0 aload_0
1 getfield #19
<com/allmycode/samples/MyA
ctivity/room
Lcom/allmycode/samples/Roo
m;>
4 getfield #47
<com/allmycode/samples/Roo
m/numGuests I>
7 ifne 22 (+15)
10 aload_0
……
……
……
ANDROID
 In 2007, Dan Bornstein at
Google created Dalvik
bytecode — another way to
represent instructions for
processors to follow.
 Dalvik bytecode is optimized
(best use) for the limited
resources on a phone or a
tablet device.
Dalvik Byte code
.method public
checkVacancy(Landroid/view/
View;)V
.limit registers 4
; parameter[0] : v3
(Landroid/view/View;)
.line 30
iget-object
v0,v2,com/allmycode/samples/
MyActivity.room
Lcom/allmycode/samples/Roo
m;
; v0 :
……
……
……
CREATING AN ANDROID APP
 For Creation of An Android App the requirements
are:
 JDK (Java Development Kit)
 for JAVA
 Android SDK (Software Development Kit)
 for ANDROID
 An IDE (Integrated Development Environment. A
programming environment meshed into a software
program. It provides a text or code editor, a GUI
builder, a compiler, interpreter and debugger)
 Eclipse OR
 Android Studio
 When we create an Android app, Eclipse/Android
Studio performs at least two compilations:
 One compilation creates Java bytecode from
our Java source files.
 The source filenames have the .java extension;
the Java bytecode filenames have the .class
extension.
 Another compilation creates Dalvik bytecode
from our Java bytecode files.
 Dalvik bytecode file names have the .dex
extension.
ANDROID
 Android app has
 XML files,
 java files, and possibly other elements.
 Before we install an app on a device.
 Eclipse/ Android Studio combines all these elements
into a single file — one with the .apk extension
 To perform the compilation from source code to Java
bytecode, Eclipse uses a program named javac, also
known as the Java compiler.
 To perform the compilation from Java bytecode to
Dalvik code, Eclipse uses a program named dx
(known affectionately as “the dx tool”).
 To combine all your app‟s files into one .apk file,
Eclipse uses a program named apkbuilder.
ANDROID
Open an
ANDROID STUDIO
To Start a Project;
Click on File Menu and then select NEW PROJECT
Name of your
APP
This Dialog box will let you choose the ICON of
your app
Choose which type of Activity you want to work
on
Name your
ACTIVITY
Then Click FINISH
XML file
contains;
•Design
View (Drag
and Drop)
And
•Text View
(Coding of
the Widgets)
Design
View
XML file
contains;
•Design
View (Drag
and Drop)
And
•Text View
(Coding of
the Widgets)
TEXT
View
Java File.
Here is the
actual
coding of the
working of
the app
To RUN your
app, start the
AVD
Manager
By Clicking
On The
ICON
Click on the
available
AVD,
And then
click START
The EMULATOR is Starting
The
EMULATOR
By Clicking on RUN Button. The APP is running
now!

Mais conteúdo relacionado

Mais procurados

01 04 - android set up and creating an android project
01  04 - android set up and creating an android project01  04 - android set up and creating an android project
01 04 - android set up and creating an android projectSiva Kumar reddy Vasipally
 
Basic of Java Netbeans
Basic of Java NetbeansBasic of Java Netbeans
Basic of Java NetbeansShrey Goswami
 
Android development session
Android development sessionAndroid development session
Android development sessionEsraa Ibrahim
 
Beta testing guidelines for developer
Beta testing guidelines for developerBeta testing guidelines for developer
Beta testing guidelines for developerKetan Raval
 
Introduction of VS2012 IDE and ASP.NET Controls
Introduction of VS2012 IDE and ASP.NET ControlsIntroduction of VS2012 IDE and ASP.NET Controls
Introduction of VS2012 IDE and ASP.NET ControlsKhademulBasher
 
Training Session 2 - Day 2
Training Session 2 - Day 2Training Session 2 - Day 2
Training Session 2 - Day 2Vivek Bhusal
 
Sensors in Android (old)
Sensors in Android (old)Sensors in Android (old)
Sensors in Android (old)Ahsanul Karim
 
Visual Programming
Visual ProgrammingVisual Programming
Visual ProgrammingBagzzz
 
IOS Swift language 1st Tutorial
IOS Swift language 1st TutorialIOS Swift language 1st Tutorial
IOS Swift language 1st TutorialHassan A-j
 
Android Application that makes use of RSS Feed.pptx
Android Application that makes use of RSS Feed.pptxAndroid Application that makes use of RSS Feed.pptx
Android Application that makes use of RSS Feed.pptxvishal choudhary
 
Ios actions and outlets
Ios actions and outletsIos actions and outlets
Ios actions and outletsveeracynixit
 
Tutorial of web application load testing in selinium in English
Tutorial of web application load testing in selinium in EnglishTutorial of web application load testing in selinium in English
Tutorial of web application load testing in selinium in EnglishKeval Shah
 
Getting Enter in Android development
Getting Enter in Android developmentGetting Enter in Android development
Getting Enter in Android developmentGhufran Hashmi
 
Build your first android mobile app
Build your first android mobile appBuild your first android mobile app
Build your first android mobile appekipaco
 
Creating the first app with android studio
Creating the first app with android studioCreating the first app with android studio
Creating the first app with android studioParinita03
 
MonkeyTalk Documentation
MonkeyTalk DocumentationMonkeyTalk Documentation
MonkeyTalk DocumentationVivek Pansara
 

Mais procurados (20)

01 04 - android set up and creating an android project
01  04 - android set up and creating an android project01  04 - android set up and creating an android project
01 04 - android set up and creating an android project
 
Project anatomy & hello world
Project anatomy & hello worldProject anatomy & hello world
Project anatomy & hello world
 
Basic of Java Netbeans
Basic of Java NetbeansBasic of Java Netbeans
Basic of Java Netbeans
 
Android development session
Android development sessionAndroid development session
Android development session
 
Beta testing guidelines for developer
Beta testing guidelines for developerBeta testing guidelines for developer
Beta testing guidelines for developer
 
Introduction of VS2012 IDE and ASP.NET Controls
Introduction of VS2012 IDE and ASP.NET ControlsIntroduction of VS2012 IDE and ASP.NET Controls
Introduction of VS2012 IDE and ASP.NET Controls
 
Training Session 2 - Day 2
Training Session 2 - Day 2Training Session 2 - Day 2
Training Session 2 - Day 2
 
Sensors in Android (old)
Sensors in Android (old)Sensors in Android (old)
Sensors in Android (old)
 
Visual Programming
Visual ProgrammingVisual Programming
Visual Programming
 
IOS Swift language 1st Tutorial
IOS Swift language 1st TutorialIOS Swift language 1st Tutorial
IOS Swift language 1st Tutorial
 
Android 1.8 sensor
Android 1.8 sensorAndroid 1.8 sensor
Android 1.8 sensor
 
Android Programming.pptx
Android Programming.pptxAndroid Programming.pptx
Android Programming.pptx
 
Android Application that makes use of RSS Feed.pptx
Android Application that makes use of RSS Feed.pptxAndroid Application that makes use of RSS Feed.pptx
Android Application that makes use of RSS Feed.pptx
 
Ios actions and outlets
Ios actions and outletsIos actions and outlets
Ios actions and outlets
 
Tutorial of web application load testing in selinium in English
Tutorial of web application load testing in selinium in EnglishTutorial of web application load testing in selinium in English
Tutorial of web application load testing in selinium in English
 
Getting Enter in Android development
Getting Enter in Android developmentGetting Enter in Android development
Getting Enter in Android development
 
Build your first android mobile app
Build your first android mobile appBuild your first android mobile app
Build your first android mobile app
 
Creating the first app with android studio
Creating the first app with android studioCreating the first app with android studio
Creating the first app with android studio
 
visual basic programming
visual basic programmingvisual basic programming
visual basic programming
 
MonkeyTalk Documentation
MonkeyTalk DocumentationMonkeyTalk Documentation
MonkeyTalk Documentation
 

Destaque

Calculator 3
Calculator 3Calculator 3
Calculator 3livecode
 
Stop Making Pretty Websites That Suck
Stop Making Pretty Websites That SuckStop Making Pretty Websites That Suck
Stop Making Pretty Websites That SuckBarry Saunders
 
Does the new cap fit birketts format - v3 with pictures - 25 03 2014 (57434...
Does the new cap fit   birketts format - v3 with pictures - 25 03 2014 (57434...Does the new cap fit   birketts format - v3 with pictures - 25 03 2014 (57434...
Does the new cap fit birketts format - v3 with pictures - 25 03 2014 (57434...CLA - East
 
Presentasisocio 120421011118-phpapp02
Presentasisocio 120421011118-phpapp02Presentasisocio 120421011118-phpapp02
Presentasisocio 120421011118-phpapp02memons100
 
CLA CAP Reform Overview presentation - Swaffham, 7 March 2014
CLA CAP Reform Overview presentation - Swaffham, 7 March 2014CLA CAP Reform Overview presentation - Swaffham, 7 March 2014
CLA CAP Reform Overview presentation - Swaffham, 7 March 2014CLA - East
 
Weight loss pills: should you use them?
Weight loss pills: should you use them?Weight loss pills: should you use them?
Weight loss pills: should you use them?Emmanuel Holuwhaphemmy
 
Farm Business Update 2014: Aylsham, Essex and Suffolk Water
Farm Business Update 2014: Aylsham, Essex and Suffolk WaterFarm Business Update 2014: Aylsham, Essex and Suffolk Water
Farm Business Update 2014: Aylsham, Essex and Suffolk WaterCLA - East
 
Technicolor turtle printed yoga mat
Technicolor turtle printed yoga matTechnicolor turtle printed yoga mat
Technicolor turtle printed yoga matFitdango Corp
 
Bab i pendahuluan
Bab i pendahuluanBab i pendahuluan
Bab i pendahuluanV C Iqbal
 
CLA CAP Reform Overview presentation - Bedfordshire, 3 March 2014
CLA CAP Reform Overview presentation - Bedfordshire, 3 March 2014CLA CAP Reform Overview presentation - Bedfordshire, 3 March 2014
CLA CAP Reform Overview presentation - Bedfordshire, 3 March 2014CLA - East
 
DISEÑO DE LA SECUENCIA DIDÁCTICA DE UN GIA JOSE ATUNCAR AULA 23
DISEÑO DE LA SECUENCIA DIDÁCTICA DE UN GIA JOSE ATUNCAR AULA 23DISEÑO DE LA SECUENCIA DIDÁCTICA DE UN GIA JOSE ATUNCAR AULA 23
DISEÑO DE LA SECUENCIA DIDÁCTICA DE UN GIA JOSE ATUNCAR AULA 23rosacarrasco1964
 

Destaque (20)

Calculator 3
Calculator 3Calculator 3
Calculator 3
 
Simplest calculator app using android studio android workshop
Simplest calculator app using android studio   android workshopSimplest calculator app using android studio   android workshop
Simplest calculator app using android studio android workshop
 
Stop Making Pretty Websites That Suck
Stop Making Pretty Websites That SuckStop Making Pretty Websites That Suck
Stop Making Pretty Websites That Suck
 
Does the new cap fit birketts format - v3 with pictures - 25 03 2014 (57434...
Does the new cap fit   birketts format - v3 with pictures - 25 03 2014 (57434...Does the new cap fit   birketts format - v3 with pictures - 25 03 2014 (57434...
Does the new cap fit birketts format - v3 with pictures - 25 03 2014 (57434...
 
Presentasisocio 120421011118-phpapp02
Presentasisocio 120421011118-phpapp02Presentasisocio 120421011118-phpapp02
Presentasisocio 120421011118-phpapp02
 
ㅏㅏ
ㅏㅏㅏㅏ
ㅏㅏ
 
CLA CAP Reform Overview presentation - Swaffham, 7 March 2014
CLA CAP Reform Overview presentation - Swaffham, 7 March 2014CLA CAP Reform Overview presentation - Swaffham, 7 March 2014
CLA CAP Reform Overview presentation - Swaffham, 7 March 2014
 
Weight loss pills: should you use them?
Weight loss pills: should you use them?Weight loss pills: should you use them?
Weight loss pills: should you use them?
 
Farm Business Update 2014: Aylsham, Essex and Suffolk Water
Farm Business Update 2014: Aylsham, Essex and Suffolk WaterFarm Business Update 2014: Aylsham, Essex and Suffolk Water
Farm Business Update 2014: Aylsham, Essex and Suffolk Water
 
Technicolor turtle printed yoga mat
Technicolor turtle printed yoga matTechnicolor turtle printed yoga mat
Technicolor turtle printed yoga mat
 
Bab i pendahuluan
Bab i pendahuluanBab i pendahuluan
Bab i pendahuluan
 
Gebeurtenis
GebeurtenisGebeurtenis
Gebeurtenis
 
Hero project ppt
Hero project pptHero project ppt
Hero project ppt
 
Kanabisa
KanabisaKanabisa
Kanabisa
 
ㅏㅏ
ㅏㅏㅏㅏ
ㅏㅏ
 
Comedy conventions
Comedy conventionsComedy conventions
Comedy conventions
 
Managing your energy
Managing your energyManaging your energy
Managing your energy
 
CLA CAP Reform Overview presentation - Bedfordshire, 3 March 2014
CLA CAP Reform Overview presentation - Bedfordshire, 3 March 2014CLA CAP Reform Overview presentation - Bedfordshire, 3 March 2014
CLA CAP Reform Overview presentation - Bedfordshire, 3 March 2014
 
DISEÑO DE LA SECUENCIA DIDÁCTICA DE UN GIA JOSE ATUNCAR AULA 23
DISEÑO DE LA SECUENCIA DIDÁCTICA DE UN GIA JOSE ATUNCAR AULA 23DISEÑO DE LA SECUENCIA DIDÁCTICA DE UN GIA JOSE ATUNCAR AULA 23
DISEÑO DE LA SECUENCIA DIDÁCTICA DE UN GIA JOSE ATUNCAR AULA 23
 
Koperasiku
KoperasikuKoperasiku
Koperasiku
 

Semelhante a Calc app

Methods to set up android app development environment
Methods to set up android app development environmentMethods to set up android app development environment
Methods to set up android app development environmentastoria0128
 
Android chapter02-setup1-sdk
Android chapter02-setup1-sdkAndroid chapter02-setup1-sdk
Android chapter02-setup1-sdkTran Le Hoan
 
Android installation guide
Android installation guideAndroid installation guide
Android installation guidemagicshui
 
Android_Studio_Structure.docx
Android_Studio_Structure.docxAndroid_Studio_Structure.docx
Android_Studio_Structure.docxKNANTHINIMCA
 
androidPramming.ppt
androidPramming.pptandroidPramming.ppt
androidPramming.pptBijayKc16
 
Android studio
Android studioAndroid studio
Android studioAndri Yabu
 
lecture-2-android-dev.pdf
lecture-2-android-dev.pdflecture-2-android-dev.pdf
lecture-2-android-dev.pdfjakjak36
 
Day: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application DevelopmentDay: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application DevelopmentAhsanul Karim
 
Introduction To Android For Beginners.
Introduction To Android For Beginners.Introduction To Android For Beginners.
Introduction To Android For Beginners.Sandeep Londhe
 
Introduction to Software Development
Introduction to Software DevelopmentIntroduction to Software Development
Introduction to Software DevelopmentZeeshan MIrza
 
Industrial Training in Android Application
Industrial Training in Android ApplicationIndustrial Training in Android Application
Industrial Training in Android ApplicationArcadian Learning
 
MobSecCon 2015 - Dynamic Analysis of Android Apps
MobSecCon 2015 - Dynamic Analysis of Android AppsMobSecCon 2015 - Dynamic Analysis of Android Apps
MobSecCon 2015 - Dynamic Analysis of Android AppsRon Munitz
 

Semelhante a Calc app (20)

Methods to set up android app development environment
Methods to set up android app development environmentMethods to set up android app development environment
Methods to set up android app development environment
 
Android chapter02-setup1-sdk
Android chapter02-setup1-sdkAndroid chapter02-setup1-sdk
Android chapter02-setup1-sdk
 
Android installation guide
Android installation guideAndroid installation guide
Android installation guide
 
Android_Studio_Structure.docx
Android_Studio_Structure.docxAndroid_Studio_Structure.docx
Android_Studio_Structure.docx
 
Android
AndroidAndroid
Android
 
Android Basic
Android BasicAndroid Basic
Android Basic
 
Android
Android Android
Android
 
androidPramming.ppt
androidPramming.pptandroidPramming.ppt
androidPramming.ppt
 
Android studio
Android studioAndroid studio
Android studio
 
Notes Unit2.pptx
Notes Unit2.pptxNotes Unit2.pptx
Notes Unit2.pptx
 
Javalecture 1
Javalecture 1Javalecture 1
Javalecture 1
 
Android installation guide
Android installation guideAndroid installation guide
Android installation guide
 
lecture-2-android-dev.pdf
lecture-2-android-dev.pdflecture-2-android-dev.pdf
lecture-2-android-dev.pdf
 
Codename one
Codename oneCodename one
Codename one
 
Internship presentation
Internship presentationInternship presentation
Internship presentation
 
Day: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application DevelopmentDay: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application Development
 
Introduction To Android For Beginners.
Introduction To Android For Beginners.Introduction To Android For Beginners.
Introduction To Android For Beginners.
 
Introduction to Software Development
Introduction to Software DevelopmentIntroduction to Software Development
Introduction to Software Development
 
Industrial Training in Android Application
Industrial Training in Android ApplicationIndustrial Training in Android Application
Industrial Training in Android Application
 
MobSecCon 2015 - Dynamic Analysis of Android Apps
MobSecCon 2015 - Dynamic Analysis of Android AppsMobSecCon 2015 - Dynamic Analysis of Android Apps
MobSecCon 2015 - Dynamic Analysis of Android Apps
 

Último

%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park masabamasaba
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfonteinmasabamasaba
 
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburgmasabamasaba
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2
 
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxBUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxalwaysnagaraju26
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...masabamasaba
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2
 
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...WSO2
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in sowetomasabamasaba
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrandmasabamasaba
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024VictoriaMetrics
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnAmarnathKambale
 

Último (20)

%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxBUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 

Calc app

  • 1. Android App CALCULATOR MUHAMMAD SHAHAB AHMAD R.NO “142” ASAD ULLAH R.NO “168” SECTION „C‟ BS(CS) HONS IBMS THE UNIVERSITY OF AGRICULTURE, PESHAWAR,KP.
  • 2. ANDROID  A Java program (such as an Android application program) undergoes several translation steps between the time you write the program and the time a processor runs the program.  One of the reasons is simple: Instructions that are convenient for processors to run are not convenient for people to write. JAVA SOURCE CODE: public static void sum() { Int a=3,b=4; System.out.println(“sum of a and b”); System.out.println(a+b); } Public static void main(String arg[]){ Sum(); } } ANDROID
  • 3.  The processors in computers, phones, and other devices don‟t normally follow instructions like the instructions in Source code.  i.e processors don‟t follow Java source code instructions.  Instead, processors follow cryptic (having a secret or hidden meaning) instructions like Java Byte code 0 aload_0 1 getfield #19 <com/allmycode/samples/MyA ctivity/room Lcom/allmycode/samples/Roo m;> 4 getfield #47 <com/allmycode/samples/Roo m/numGuests I> 7 ifne 22 (+15) 10 aload_0 …… …… …… ANDROID
  • 4. ANDROID  When we write a Java program, we write source code instructions.  After writing the source code, we run a program (that is, we apply a tool) to the source code. The program is a COMPILER: It translates the source code instructions into Java byte code instructions.  In other words, the compiler translates code that we can write and understand into Java Byte code 0 aload_0 1 getfield #19 <com/allmycode/samples/MyA ctivity/room Lcom/allmycode/samples/Roo m;> 4 getfield #47 <com/allmycode/samples/Roo m/numGuests I> 7 ifne 22 (+15) 10 aload_0 …… …… ……
  • 5. ANDROID  In 2007, Dan Bornstein at Google created Dalvik bytecode — another way to represent instructions for processors to follow.  Dalvik bytecode is optimized (best use) for the limited resources on a phone or a tablet device. Dalvik Byte code .method public checkVacancy(Landroid/view/ View;)V .limit registers 4 ; parameter[0] : v3 (Landroid/view/View;) .line 30 iget-object v0,v2,com/allmycode/samples/ MyActivity.room Lcom/allmycode/samples/Roo m; ; v0 : …… …… ……
  • 6. CREATING AN ANDROID APP  For Creation of An Android App the requirements are:  JDK (Java Development Kit)  for JAVA  Android SDK (Software Development Kit)  for ANDROID  An IDE (Integrated Development Environment. A programming environment meshed into a software program. It provides a text or code editor, a GUI builder, a compiler, interpreter and debugger)  Eclipse OR  Android Studio
  • 7.  When we create an Android app, Eclipse/Android Studio performs at least two compilations:  One compilation creates Java bytecode from our Java source files.  The source filenames have the .java extension; the Java bytecode filenames have the .class extension.  Another compilation creates Dalvik bytecode from our Java bytecode files.  Dalvik bytecode file names have the .dex extension. ANDROID
  • 8.  Android app has  XML files,  java files, and possibly other elements.  Before we install an app on a device.  Eclipse/ Android Studio combines all these elements into a single file — one with the .apk extension  To perform the compilation from source code to Java bytecode, Eclipse uses a program named javac, also known as the Java compiler.  To perform the compilation from Java bytecode to Dalvik code, Eclipse uses a program named dx (known affectionately as “the dx tool”).  To combine all your app‟s files into one .apk file, Eclipse uses a program named apkbuilder. ANDROID
  • 10. To Start a Project; Click on File Menu and then select NEW PROJECT
  • 12. This Dialog box will let you choose the ICON of your app
  • 13. Choose which type of Activity you want to work on
  • 15. XML file contains; •Design View (Drag and Drop) And •Text View (Coding of the Widgets) Design View
  • 16. XML file contains; •Design View (Drag and Drop) And •Text View (Coding of the Widgets) TEXT View
  • 17. Java File. Here is the actual coding of the working of the app
  • 18. To RUN your app, start the AVD Manager By Clicking On The ICON
  • 20. The EMULATOR is Starting
  • 22. By Clicking on RUN Button. The APP is running now!