SlideShare a Scribd company logo
Mobile Application Development
Focus on Andriod Application development and
compare it with IOS.
Basic Topics covered Session 1
Fragments : slide 3
Activity Lifecycle : slide 4
Configuration Changes : slide 5
Starting activity and getting results: slide 6,7
Saving persistent State: Slide 7
Permissions: Slide 8
Process Lifecycle: Slide 9.
Fragments
• With Version Honeycomb Fragement class is optional for
Activity Class for modularization.
• Scale application between small and large screen.
• public class ArticleFragment extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater,
ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.article_view, container,
false);
}
}
Activity Class
• Activity- Any single focused thing User Does.
• Create window using setContentView(View).
• Full screen or Floating Window using theme
WindowIsFloating().
• Can be Grouped using class ActivityGroup
• Initialized using onCreate(Bundle) which call
setContentView() with layout resource defined to
create UI.
• findViewById(int) :retireve widget in that UI.
• onPause() deal with user leaving your activity &
changes commits ContentProvider holding data.
Visible
Lifetime
Foreground
Lifetime
Entire
Lifetime
Configuration Changes
• Resource.configuration Class allow UI
undisturbed in case of changes in
Configuration.
• Even foreground activity visible to user killed
once onDestroy() called and new activity
created To allow Configuration driven resource
handling of files etc.
• Special case usin bypass using
andriod:configChanges
Starting Activity & getting result
• startActivity(Intent): used to start Activity.
Placed in activity stack and intent describe
activity to be executed.
• Activity Exits must return RESULT_CANCELED,
RESULT_OK or any custom value.
•
Saving Persistent State
• Actvity deals with two major States:
• Shared document like data( on SQLite
database using contentprovider)
• Internal State: like user preferences.
• While creating a new document a database
entry is created.
• When onPause() called the state content
provider files of user is saved
Process Lifecycle
• Application can have four states based on Activity
Lifecycle. (As shown in diagram in slide2)
If memory Not Available then All kinds of processes can be forced closed.
• Foreground Activity: User interacts with user and
process has least priority to be killed.
• Visible Activity: Visible not in foreground killed only
when conflict with foreground.
• Background Activity: not visible or paused not critical
can be safely killed restarted with onCreate() with
savedInstanceState.(start from where left)
• Empty process: hosting no activity killed highest
priority
Intent
• Abstract description of operation to be performed.
startActivity: launch Activity
BroadCastIntent(): send to Receiver
startService(Intent):
bindService(Intent, ServiceConnection,int): Bind to service
• Structure:
– Action: To be performed
– Data: data to be operate on.
– Category: addition info for execution like launch as top level or
as alternative application
– Type: Explicit typing of data intent (Normally MIME type).
– Component: Component class for intent
otherwise(Action,Data/Type, Category) is matched.
– Extras: Bundle Additional data Like subject, Body with email.
Example Operations spec as Intent
• Launch Home screen:
ACTION_MAIN & CATEGORY_HOME
• Display people phone Number, browse & pick:
ACTION_GET_CONTENT & MIME TYPE
(vnd.andriod.cursor.item/phone.
• ACTION_GET_CONTENT with mime type Any
(*/*) and Category CATEGORY_OPENABLE.
ContentResolver.opemInputStream() pick &
attach data return URI to caller.
Mime Type list :
http://www.freeformatter.com/mime-types-
list.html
Mobile application development: part 1: Andriod Vs IOS
More Details: Cont. Next 4 more slides
• Visit http://sandyclassic.wordpress.com
• Java Architect :
http://javaarchitectview.wordpress.com/
Enterprise Architect:
http://enterprisearchitectview.wordpress.com
• Cloud perspective :
http://thecloudview.wordpress.com/
• Product Management:
http://productmanagementview.wordpress.co
m

More Related Content

PPTX
Using Redux with Polymer
PDF
Session 3 android study jam
PPT
ASPX Session xi(page lifecycle)
PDF
Session 2 android study jam
PDF
Handling Lifecycles in a Jetpack way
PPTX
Activity & Shared Preference
PDF
Кирилл Латыш "ERP on Websockets"
PPTX
Android share preferences
Using Redux with Polymer
Session 3 android study jam
ASPX Session xi(page lifecycle)
Session 2 android study jam
Handling Lifecycles in a Jetpack way
Activity & Shared Preference
Кирилл Латыш "ERP on Websockets"
Android share preferences

Viewers also liked (6)

PPT
Andriod vs iOS
PDF
iPhone and iPad Application Development
PDF
Android Application Development
PPT
Android Application Development Advanced
PPTX
IT in banking
DOCX
Thesis: THE ROLE OF INFORMATION TECHNOLOGY ON COMMERCIAL BANKS IN NIGERIA
Andriod vs iOS
iPhone and iPad Application Development
Android Application Development
Android Application Development Advanced
IT in banking
Thesis: THE ROLE OF INFORMATION TECHNOLOGY ON COMMERCIAL BANKS IN NIGERIA
Ad

Similar to Mobile application development: part 1: Andriod Vs IOS (20)

PPTX
Dori waldman android _course
PPTX
Dori waldman android _course_2
ODP
Anatomy of android application
PDF
Introduction to Android Development
PPTX
04 activities and activity life cycle
PPTX
Android apps development
PPTX
Unit 5 Activity and Activity Life Cycle.pptx
DOCX
Android Application Components with Implementation & Examples
PPT
PPTX
Android activity
PDF
Android platform activity
DOCX
Activity
DOCX
Activity
DOCX
Activity
DOCX
Activity
PDF
Lecture 3 getting active through activities
PDF
Android activity
PDF
Android activity
PPTX
Android beginners David
PPTX
Android - Activity, Services
Dori waldman android _course
Dori waldman android _course_2
Anatomy of android application
Introduction to Android Development
04 activities and activity life cycle
Android apps development
Unit 5 Activity and Activity Life Cycle.pptx
Android Application Components with Implementation & Examples
Android activity
Android platform activity
Activity
Activity
Activity
Activity
Lecture 3 getting active through activities
Android activity
Android activity
Android beginners David
Android - Activity, Services
Ad

More from Sandeep Sharma IIMK Smart City,IoT,Bigdata,Cloud,BI,DW (20)

PDF
Management Consultancy Saudi Telecom Digital Transformation Design Thinking
PPTX
Digital transformation journey Consulting
DOCX
Lnt and bbby Retail Houseare industry Case assignment sandeep sharma
DOCX
Risk management Consulting For Municipality
DOCX
GDPR And Privacy By design Consultancy
PPTX
Real implementation Blockchain Best Use Cases Examples
DOCX
Biztalk architecture for Configured SMS service
DOCX
DOCX
Cloud manager client provisioning guideline draft 1.0
PPTX
DOCX
Government Digital transformation trend draft 1.0
DOCX
Enterprise architecture maturity rating draft 1.0
DOCX
Organisation Structure For digital Transformation Team
Management Consultancy Saudi Telecom Digital Transformation Design Thinking
Digital transformation journey Consulting
Lnt and bbby Retail Houseare industry Case assignment sandeep sharma
Risk management Consulting For Municipality
GDPR And Privacy By design Consultancy
Real implementation Blockchain Best Use Cases Examples
Biztalk architecture for Configured SMS service
Cloud manager client provisioning guideline draft 1.0
Government Digital transformation trend draft 1.0
Enterprise architecture maturity rating draft 1.0
Organisation Structure For digital Transformation Team

Recently uploaded (20)

PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPT
Teaching material agriculture food technology
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Machine learning based COVID-19 study performance prediction
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Mushroom cultivation and it's methods.pdf
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Building Integrated photovoltaic BIPV_UPV.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Teaching material agriculture food technology
Programs and apps: productivity, graphics, security and other tools
MIND Revenue Release Quarter 2 2025 Press Release
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
NewMind AI Weekly Chronicles - August'25-Week II
Machine learning based COVID-19 study performance prediction
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
A comparative analysis of optical character recognition models for extracting...
Advanced methodologies resolving dimensionality complications for autism neur...
Mushroom cultivation and it's methods.pdf
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Spectral efficient network and resource selection model in 5G networks
Spectroscopy.pptx food analysis technology
Group 1 Presentation -Planning and Decision Making .pptx
Univ-Connecticut-ChatGPT-Presentaion.pdf

Mobile application development: part 1: Andriod Vs IOS

  • 1. Mobile Application Development Focus on Andriod Application development and compare it with IOS.
  • 2. Basic Topics covered Session 1 Fragments : slide 3 Activity Lifecycle : slide 4 Configuration Changes : slide 5 Starting activity and getting results: slide 6,7 Saving persistent State: Slide 7 Permissions: Slide 8 Process Lifecycle: Slide 9.
  • 3. Fragments • With Version Honeycomb Fragement class is optional for Activity Class for modularization. • Scale application between small and large screen. • public class ArticleFragment extends Fragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment return inflater.inflate(R.layout.article_view, container, false); } }
  • 4. Activity Class • Activity- Any single focused thing User Does. • Create window using setContentView(View). • Full screen or Floating Window using theme WindowIsFloating(). • Can be Grouped using class ActivityGroup • Initialized using onCreate(Bundle) which call setContentView() with layout resource defined to create UI. • findViewById(int) :retireve widget in that UI. • onPause() deal with user leaving your activity & changes commits ContentProvider holding data.
  • 6. Configuration Changes • Resource.configuration Class allow UI undisturbed in case of changes in Configuration. • Even foreground activity visible to user killed once onDestroy() called and new activity created To allow Configuration driven resource handling of files etc. • Special case usin bypass using andriod:configChanges
  • 7. Starting Activity & getting result • startActivity(Intent): used to start Activity. Placed in activity stack and intent describe activity to be executed. • Activity Exits must return RESULT_CANCELED, RESULT_OK or any custom value. •
  • 8. Saving Persistent State • Actvity deals with two major States: • Shared document like data( on SQLite database using contentprovider) • Internal State: like user preferences. • While creating a new document a database entry is created. • When onPause() called the state content provider files of user is saved
  • 9. Process Lifecycle • Application can have four states based on Activity Lifecycle. (As shown in diagram in slide2) If memory Not Available then All kinds of processes can be forced closed. • Foreground Activity: User interacts with user and process has least priority to be killed. • Visible Activity: Visible not in foreground killed only when conflict with foreground. • Background Activity: not visible or paused not critical can be safely killed restarted with onCreate() with savedInstanceState.(start from where left) • Empty process: hosting no activity killed highest priority
  • 10. Intent • Abstract description of operation to be performed. startActivity: launch Activity BroadCastIntent(): send to Receiver startService(Intent): bindService(Intent, ServiceConnection,int): Bind to service • Structure: – Action: To be performed – Data: data to be operate on. – Category: addition info for execution like launch as top level or as alternative application – Type: Explicit typing of data intent (Normally MIME type). – Component: Component class for intent otherwise(Action,Data/Type, Category) is matched. – Extras: Bundle Additional data Like subject, Body with email.
  • 11. Example Operations spec as Intent • Launch Home screen: ACTION_MAIN & CATEGORY_HOME • Display people phone Number, browse & pick: ACTION_GET_CONTENT & MIME TYPE (vnd.andriod.cursor.item/phone. • ACTION_GET_CONTENT with mime type Any (*/*) and Category CATEGORY_OPENABLE. ContentResolver.opemInputStream() pick & attach data return URI to caller. Mime Type list : http://www.freeformatter.com/mime-types- list.html
  • 13. More Details: Cont. Next 4 more slides • Visit http://sandyclassic.wordpress.com • Java Architect : http://javaarchitectview.wordpress.com/ Enterprise Architect: http://enterprisearchitectview.wordpress.com • Cloud perspective : http://thecloudview.wordpress.com/ • Product Management: http://productmanagementview.wordpress.co m

Editor's Notes

  • #12: All Mime types: http://www.webmaster-toolkit.com/mime-types.shtml http://www.freeformatter.com/mime-types-list.html
  • #14: All Mime types: http://www.webmaster-toolkit.com/mime-types.shtml http://www.freeformatter.com/mime-types-list.html