SlideShare a Scribd company logo
1 of 15
Prepared By,
NicheTech
http://www.nichetechsolutions.com/
 Progress Dialog basically used for showing the status of
our download operation.
Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
 If we are interested to perform the progress dialog, then
what we suppose to do is first create the instance or
object of a class named ProgressDialog class and then
after set the various properties of it.
_progressDialog = new ProgressDialog(this);
_progressDialog.setIcon(R.drawable.icon);
_progressDialog.setTitle(“Downloading files...”);
_progressDialog.setProgressStyle(ProgressDialog.STYLE_
HORIZONTAL);
Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
 Then set the two button .
 Next is if you want to display the progress status in the
progress dialog , you need to use a Handler Object to run
the background thread.
 The background thread counts up to 100, with each
count delayed by 100 milliseconds.
Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
 Our mobile application Android, contain zero or more
than one activity.
 Using the Intents, we can navigate between activities.
 Please check out the image in the next slide.
Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
 Write the code inside AndroidManifest.xml file
 The name of the new activity added is “Activity2”.
 The label for the activity is named “Activity 2”.
 The intent filter name for the activity is
“net.learn2develop.ACTIVITY2”. Other activities that
wish to call this activity will invoke it via this name.
 The category for the intent filter is
“android.intent.category.DEFAULT”. You need to add this
to the intent filter so that this activity can be started by
another activity using the startActivity()
method.
Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
 Right Click on the src folder and create new class and give
the name Activity2.
Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
 Create one copy of main.xml file by right click on the
res/layout folder, and click on the paste button and give
the file name activity2.xml.
 Now it is the time to modify the activity2.xml file.
Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
 Inside the Activity2.java file write the code below
Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
 Here come the main file FirstBasicAndroidActivity.java
Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
 In the FirstBasicAndroidActivity.java file, you
implemented the onKeyDown event handler. This event
is fired whenever the user presses one of the keys on the
device.
 When the user presses the center key on the directional
pad (as represented by the
KeyEvent.KEYCODE_DPAD_CENTER constant), you use
the startActivity() method to display Activity2 by creating
an instance of the Intent class and passing it the intent
filter name of Activity2 (which is
net.learn2develop.ACTIVITY2):
Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd

More Related Content

Recently uploaded

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
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Recently uploaded (20)

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
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
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
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
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
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.
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Android Training Ahmedabad , Android Course Ahmedabad, Android Live Project Training Ahmedabad

  • 2.  Progress Dialog basically used for showing the status of our download operation. Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
  • 3. Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
  • 4. Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
  • 5.  If we are interested to perform the progress dialog, then what we suppose to do is first create the instance or object of a class named ProgressDialog class and then after set the various properties of it. _progressDialog = new ProgressDialog(this); _progressDialog.setIcon(R.drawable.icon); _progressDialog.setTitle(“Downloading files...”); _progressDialog.setProgressStyle(ProgressDialog.STYLE_ HORIZONTAL); Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
  • 6.  Then set the two button .  Next is if you want to display the progress status in the progress dialog , you need to use a Handler Object to run the background thread.  The background thread counts up to 100, with each count delayed by 100 milliseconds. Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
  • 7.  Our mobile application Android, contain zero or more than one activity.  Using the Intents, we can navigate between activities.  Please check out the image in the next slide. Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
  • 8. Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
  • 9.  Write the code inside AndroidManifest.xml file  The name of the new activity added is “Activity2”.  The label for the activity is named “Activity 2”.  The intent filter name for the activity is “net.learn2develop.ACTIVITY2”. Other activities that wish to call this activity will invoke it via this name.  The category for the intent filter is “android.intent.category.DEFAULT”. You need to add this to the intent filter so that this activity can be started by another activity using the startActivity() method. Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
  • 10.  Right Click on the src folder and create new class and give the name Activity2. Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
  • 11.  Create one copy of main.xml file by right click on the res/layout folder, and click on the paste button and give the file name activity2.xml.  Now it is the time to modify the activity2.xml file. Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
  • 12.  Inside the Activity2.java file write the code below Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
  • 13.  Here come the main file FirstBasicAndroidActivity.java Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
  • 14.  In the FirstBasicAndroidActivity.java file, you implemented the onKeyDown event handler. This event is fired whenever the user presses one of the keys on the device.  When the user presses the center key on the directional pad (as represented by the KeyEvent.KEYCODE_DPAD_CENTER constant), you use the startActivity() method to display Activity2 by creating an instance of the Intent class and passing it the intent filter name of Activity2 (which is net.learn2develop.ACTIVITY2): Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd
  • 15. Prepared By, NicheTech (C) Nichetech Com. Sol. Pvt. Ltd