SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Android Libraries and APIs
Software Library

Collection of
“implementations”, with
easy to call hooks.

Helps remove
redundancy of similar
functionality from
apps

Helps abstracting
higher level
development away
from lower level
Application programming interface

How software
components should
interact

Can be in form of a
library or just
documentation

ABI = Application
Binary Interface; for
closed source binary
function call hooks
Software Development Kit

Set of tools to
create a software for
a particular platform.

Usually a set of APIs,
building tools and
configs, debugging &
testing utilities

SDK's license can
dictate the freeness
of the software you
develop
Libraries in Android

.jar -> are just Java
libraries

.jar libraries are
mostly functionality
based libraries, where
data handling, data
manipulation,
service/framework
integration is handled

Generally cannot be
Libraries in Android

.aar -> android library

Contain java code
along with android
resources and also
android manifest stubs

Project structure
exactly as an Android
app

**Support only
Libraries in Android

Open source libraries
-> distributed as form
of the whole
directory structure
from where project
was built

Need to import the
whole project into
IDE and add it as a
module on which your
App depends
Creating your own Android Library

Step 1 : Decide
whether to use only-
java library or a full
android library

Step 2 : Create data-
agnostic
functions/classes in
library. Keep in mind
various different apps
will use the library
Creating your own Android Library

Step 4 : Properly
document the usage of
the library. If not
for anyone else but
for yourself

Step 5 : Test properly
for all use cases and
corner cases

Step 6 : Decide
distribution
Need for documentation

A library is written
for third party usage

The person who will
develop a software
using your library
needs to know how to
make best use of your
library

Even open source
libraries must have
Javadoc : Documenting Java code

Generally
documentation
invloves writing
comments in code.
Javadoc takes the
step further.

Write comments in
code in javadoc
format, then run
javadoc on the
source, and get
Javadoc : Documenting Java code

Basic structure :
enclose in /**
<comment> */
Javadoc : Documenting Java code

Weitere ähnliche Inhalte

Was ist angesagt?

Android fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginnersAndroid fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginners
Boom Shukla
 

Was ist angesagt? (20)

Android Programming
Android ProgrammingAndroid Programming
Android Programming
 
Selenium web driver_2.0_presentation
Selenium web driver_2.0_presentationSelenium web driver_2.0_presentation
Selenium web driver_2.0_presentation
 
Android development
Android developmentAndroid development
Android development
 
Android Web app
Android Web app Android Web app
Android Web app
 
PDE builds or Maven
PDE builds or MavenPDE builds or Maven
PDE builds or Maven
 
Android fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginnersAndroid fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginners
 
Introduction to Android and Android Studio
Introduction to Android and Android StudioIntroduction to Android and Android Studio
Introduction to Android and Android Studio
 
IntelliJ IDEA: Life after Open Source
IntelliJ IDEA: Life after Open SourceIntelliJ IDEA: Life after Open Source
IntelliJ IDEA: Life after Open Source
 
Android study jams 1
Android study jams 1Android study jams 1
Android study jams 1
 
Eclipse plug in development
Eclipse plug in developmentEclipse plug in development
Eclipse plug in development
 
PDE Good Practices
PDE Good PracticesPDE Good Practices
PDE Good Practices
 
Java Swing vs. Android App
Java Swing vs. Android AppJava Swing vs. Android App
Java Swing vs. Android App
 
Android Programming made easy
Android Programming made easyAndroid Programming made easy
Android Programming made easy
 
An introduction to Android
An introduction to AndroidAn introduction to Android
An introduction to Android
 
From Renamer Plugin to Polyglot IDE
From Renamer Plugin to Polyglot IDEFrom Renamer Plugin to Polyglot IDE
From Renamer Plugin to Polyglot IDE
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application Development
 
Custom Android App Development – Web Animation India
Custom Android App Development – Web Animation IndiaCustom Android App Development – Web Animation India
Custom Android App Development – Web Animation India
 
Arduino - Android Workshop Presentation
Arduino - Android Workshop PresentationArduino - Android Workshop Presentation
Arduino - Android Workshop Presentation
 
Python Integrated Development Environment
Python Integrated Development EnvironmentPython Integrated Development Environment
Python Integrated Development Environment
 
Project proposal android operating system
Project proposal android operating systemProject proposal android operating system
Project proposal android operating system
 

Ähnlich wie Creating your own Android library and documenting it with Javadocs

Java and Related Technologies
Java and Related TechnologiesJava and Related Technologies
Java and Related Technologies
Qualys
 

Ähnlich wie Creating your own Android library and documenting it with Javadocs (20)

Introduction Java Web Framework and Web Server.
Introduction Java Web Framework and Web Server.Introduction Java Web Framework and Web Server.
Introduction Java Web Framework and Web Server.
 
Presentation for Android OS
Presentation for Android OSPresentation for Android OS
Presentation for Android OS
 
Ide
IdeIde
Ide
 
01 02 - introduction - adroid stack
01  02 - introduction - adroid stack01  02 - introduction - adroid stack
01 02 - introduction - adroid stack
 
15 android libraries for app development
15 android libraries for app development15 android libraries for app development
15 android libraries for app development
 
JAVA First Day
JAVA First DayJAVA First Day
JAVA First Day
 
Software requirement
Software requirementSoftware requirement
Software requirement
 
Software environment
Software environmentSoftware environment
Software environment
 
Javascript mynotes
Javascript mynotesJavascript mynotes
Javascript mynotes
 
Lecture11_LaravelGetStarted_SPring2023.pdf
Lecture11_LaravelGetStarted_SPring2023.pdfLecture11_LaravelGetStarted_SPring2023.pdf
Lecture11_LaravelGetStarted_SPring2023.pdf
 
Android Basic
Android BasicAndroid Basic
Android Basic
 
Android
Android Android
Android
 
Android architecture
Android architectureAndroid architecture
Android architecture
 
API workshop: Introduction to APIs (TC Camp)
API workshop: Introduction to APIs (TC Camp)API workshop: Introduction to APIs (TC Camp)
API workshop: Introduction to APIs (TC Camp)
 
Teste
TesteTeste
Teste
 
Wifi Direct Based Chat And File Transfer Android Application
Wifi Direct Based Chat And File Transfer Android ApplicationWifi Direct Based Chat And File Transfer Android Application
Wifi Direct Based Chat And File Transfer Android Application
 
Dependency Management on iOS
Dependency Management on iOSDependency Management on iOS
Dependency Management on iOS
 
Android In A Nutshell
Android In A NutshellAndroid In A Nutshell
Android In A Nutshell
 
J introtojava1-pdf
J introtojava1-pdfJ introtojava1-pdf
J introtojava1-pdf
 
Java and Related Technologies
Java and Related TechnologiesJava and Related Technologies
Java and Related Technologies
 

Kürzlich hochgeladen

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Kürzlich hochgeladen (20)

Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 

Creating your own Android library and documenting it with Javadocs

  • 2. Software Library  Collection of “implementations”, with easy to call hooks.  Helps remove redundancy of similar functionality from apps  Helps abstracting higher level development away from lower level
  • 3. Application programming interface  How software components should interact  Can be in form of a library or just documentation  ABI = Application Binary Interface; for closed source binary function call hooks
  • 4. Software Development Kit  Set of tools to create a software for a particular platform.  Usually a set of APIs, building tools and configs, debugging & testing utilities  SDK's license can dictate the freeness of the software you develop
  • 5.
  • 6. Libraries in Android  .jar -> are just Java libraries  .jar libraries are mostly functionality based libraries, where data handling, data manipulation, service/framework integration is handled  Generally cannot be
  • 7. Libraries in Android  .aar -> android library  Contain java code along with android resources and also android manifest stubs  Project structure exactly as an Android app  **Support only
  • 8. Libraries in Android  Open source libraries -> distributed as form of the whole directory structure from where project was built  Need to import the whole project into IDE and add it as a module on which your App depends
  • 9. Creating your own Android Library  Step 1 : Decide whether to use only- java library or a full android library  Step 2 : Create data- agnostic functions/classes in library. Keep in mind various different apps will use the library
  • 10. Creating your own Android Library  Step 4 : Properly document the usage of the library. If not for anyone else but for yourself  Step 5 : Test properly for all use cases and corner cases  Step 6 : Decide distribution
  • 11. Need for documentation  A library is written for third party usage  The person who will develop a software using your library needs to know how to make best use of your library  Even open source libraries must have
  • 12. Javadoc : Documenting Java code  Generally documentation invloves writing comments in code. Javadoc takes the step further.  Write comments in code in javadoc format, then run javadoc on the source, and get
  • 13. Javadoc : Documenting Java code  Basic structure : enclose in /** <comment> */