SlideShare ist ein Scribd-Unternehmen logo
1 von 28
DAY 3 Summary
This is our last day, and yesterday we
talk about:
• Monetizing your app
• Publishing your app
• Before you upload you APK

• Using Services in you app
• What is a Service
• Tell me something about Service priority
• How do we start a service

• Cloud solutions
• Training options
• Pluralsight
• Coursera (this is what I’ve forgot yesterday)

2
Monetization strategy is important

3
Potential Revenues sources
• Pay-per download
• In-app advertising
• In-app purchase
• Subscriptions
• Affiliate sales

• Sponsorship
• Promotions
• Analytics

4
ANY QUESTIONS?
Before we start Day 4 lectures
• Let’s look at Eclipse IDE 
• How to import projects
• What android device do you have???
• What kind of device do you have
• http://developer.samsung.com/android/tools-sdks/Samsung-Andorid-USBDriver-for-Windows

• How to use device to run app

6
DAY 4: Location Basics
Android location basics
• Accessing the location systems
• Location providers and security
• Handling location information
• Receiving location updates
• Getting a single location value

8
Accessing the location system
• Location manager is the root of the location system
•
•
•
•
•

Get current location
Monitor for changes in status of location hardware
Request notification when reaching a location
Exposed as system service
Use | Context.getSystemService (Context.LOCATION_SERVICE)

9
Selecting a location provider
• Global Positioning System (GPS)
•
•
•
•

LocationManager.GPS_PROVIDER
Satellite based
Extremely accurate (3 meters)
Very power intensive

• Network-based
•
•
•
•

LocationMAnage.NETWORK_PROVIDER
Uses a combination of known Wi-Fi hotspots and cellular towers
Accuracy varies (10m-1km)
Less power

10
Location is a secured service
• You must request permissions
• How?

• Different permission depending on location accuracy
• Course location providers
• Network provider is considered low-accuracy (a.k.a course)
• Request ACCESS_COURSE_LOCATION permission

• Fine location providers
• GPS provider is consider high-accuracy (a.k.a fine)
• Request ACCESS_FINE_LOCATION
• Fine location permission implies course

11
Location provided through callbacks
• Implement the LocationListener interface to receive updates
• OnLocationChanged
• onProviderEnabled/onProviderDisabled
• onStatusChanged

12
Understanding Location class
• Providers row location information
• Core fields
• getLatitude, getLongitude, getAccuracy
• Provides latitude/longitude and accuracy in meters

• Time
• getTime (UTC)
• getElapsedRealtimeNanos
• Added in Android 4.2

• Other information varies depending on provider
• getSpeed, getAltitude ( use has method to check)

13
DEMO

14
Steps to receive location updates
• Request a reference to location service
• Create instance of LocationListener implementation
• Call the location service’s requestLocationUpdates method

15
Getting a single location value
• Getting a single location value quickly
• LocationManage.getLastKnownLocation
• Immediately returns the last Location received by the provider

• Getting a single, current location value
• Locationmanage.requestSingleUpdate
• Uses callback model like requestLocationUpdates
• To run callback on main thread, pass null as the 3rd (Looper) parameter

16
Summary
• The LocationManage is exposed as a system service
• Location Providers offer varaying features
• GPS
• Network

• Location requires appropriate security privilages
• Implement LocationListener interface to receive location callbacks
• Location class contains raw details
• Get single location quickly with getLastKnownLocation (watch the
time)

17
ANY QUESTIONS?
And now – THE TEST 
• Just a few questions from summaries

19
DAY 4: Cloud app
DEMO
• We did the talk yesterday

21
Workshop Evaluation
• Why it is so important
• What you need to pay attention to

22
Do we have time to look into progress
bars
• Let check documentation

23
How can you connect with me

• Twitter: @gdjonovic – fastest way to ask question and get answer
• Email: djonovic.g@gmail – send me an email to get material
• LinkedIn: http://www.linkedin.com/in/gdjonovic
• Slide share: http://www.slideshare.net/gorandjonovic
• Git hub: https://github.com/gdjonovic
• Blog: http://gdjonovic.me/ - fresh

24/13
Farewell speech
• You are smart – Question everything
• Solve problems
• Be passionate
• Go out your comfort zone – grow
• Share your knowledge
• Learn true value

25
26
27
ANY QUESTIONS?

Weitere ähnliche Inhalte

Was ist angesagt?

AppScale @ LA.rb
AppScale @ LA.rbAppScale @ LA.rb
AppScale @ LA.rbChris Bunch
 
Container Orchestration with Traefk on Docker Swarm
Container Orchestration with Traefk on Docker SwarmContainer Orchestration with Traefk on Docker Swarm
Container Orchestration with Traefk on Docker SwarmJakub Hajek
 
What's new in ASP.NET vNext
What's new in ASP.NET vNextWhat's new in ASP.NET vNext
What's new in ASP.NET vNextGunnar Peipman
 
Serverless Meetup - Event Sourcing
Serverless Meetup - Event SourcingServerless Meetup - Event Sourcing
Serverless Meetup - Event SourcingLuca Bianchi
 
Live migration in Mobile Edge Computing (MEC)
Live migration in Mobile Edge Computing (MEC)Live migration in Mobile Edge Computing (MEC)
Live migration in Mobile Edge Computing (MEC)Andy Jones
 
A Pluggable Autoscaling System @ UCC
A Pluggable Autoscaling System @ UCCA Pluggable Autoscaling System @ UCC
A Pluggable Autoscaling System @ UCCChris Bunch
 
Netflix s2e1lightningtalk
Netflix s2e1lightningtalkNetflix s2e1lightningtalk
Netflix s2e1lightningtalkaspyker
 
An Introduction to Microservices
An Introduction to MicroservicesAn Introduction to Microservices
An Introduction to MicroservicesAd van der Veer
 
Designing the Call of Cthulhu app with Google App Engine
Designing the Call of Cthulhu app with Google App EngineDesigning the Call of Cthulhu app with Google App Engine
Designing the Call of Cthulhu app with Google App EngineChris Bunch
 
Provisioning with Terraform - AzureDay Reloaded
Provisioning with Terraform - AzureDay Reloaded Provisioning with Terraform - AzureDay Reloaded
Provisioning with Terraform - AzureDay Reloaded Giorgio Lasala
 
From the Trenches: Effectively Scaling Your Cloud Infrastructure and Optimizi...
From the Trenches: Effectively Scaling Your Cloud Infrastructure and Optimizi...From the Trenches: Effectively Scaling Your Cloud Infrastructure and Optimizi...
From the Trenches: Effectively Scaling Your Cloud Infrastructure and Optimizi...Allan Mangune
 
Empowering Publishers - Hosting Provider Selection Process - May-15-2013
Empowering Publishers - Hosting Provider Selection Process - May-15-2013Empowering Publishers - Hosting Provider Selection Process - May-15-2013
Empowering Publishers - Hosting Provider Selection Process - May-15-2013Amazon Web Services
 
Meetup#7: AWS LightSail - The Simplicity of VPS - The Power of AWS
Meetup#7: AWS LightSail - The Simplicity of VPS - The Power of AWSMeetup#7: AWS LightSail - The Simplicity of VPS - The Power of AWS
Meetup#7: AWS LightSail - The Simplicity of VPS - The Power of AWSAWS Vietnam Community
 
Monitoring microservices platform
Monitoring microservices platformMonitoring microservices platform
Monitoring microservices platformBoyan Dimitrov
 
How IT at Getty Images Brokers Cloud Services
How IT at Getty Images Brokers Cloud ServicesHow IT at Getty Images Brokers Cloud Services
How IT at Getty Images Brokers Cloud ServicesRightScale
 
Deep Dive Into Elasticsearch: Establish A Powerful Log Analysis System With E...
Deep Dive Into Elasticsearch: Establish A Powerful Log Analysis System With E...Deep Dive Into Elasticsearch: Establish A Powerful Log Analysis System With E...
Deep Dive Into Elasticsearch: Establish A Powerful Log Analysis System With E...Tyler Nguyen
 
Apache CloudStack 4.2: A First Look
Apache CloudStack 4.2: A First LookApache CloudStack 4.2: A First Look
Apache CloudStack 4.2: A First LookShanker Balan
 
Service fabric overview
Service fabric overviewService fabric overview
Service fabric overviewHimanshu Desai
 

Was ist angesagt? (20)

AppScale @ LA.rb
AppScale @ LA.rbAppScale @ LA.rb
AppScale @ LA.rb
 
THE ARCHIVISION DIGITAL RESEARCH LIBRARY
THE ARCHIVISION DIGITAL RESEARCH LIBRARYTHE ARCHIVISION DIGITAL RESEARCH LIBRARY
THE ARCHIVISION DIGITAL RESEARCH LIBRARY
 
Container Orchestration with Traefk on Docker Swarm
Container Orchestration with Traefk on Docker SwarmContainer Orchestration with Traefk on Docker Swarm
Container Orchestration with Traefk on Docker Swarm
 
What's new in ASP.NET vNext
What's new in ASP.NET vNextWhat's new in ASP.NET vNext
What's new in ASP.NET vNext
 
Serverless Meetup - Event Sourcing
Serverless Meetup - Event SourcingServerless Meetup - Event Sourcing
Serverless Meetup - Event Sourcing
 
Live migration in Mobile Edge Computing (MEC)
Live migration in Mobile Edge Computing (MEC)Live migration in Mobile Edge Computing (MEC)
Live migration in Mobile Edge Computing (MEC)
 
A Pluggable Autoscaling System @ UCC
A Pluggable Autoscaling System @ UCCA Pluggable Autoscaling System @ UCC
A Pluggable Autoscaling System @ UCC
 
Netflix s2e1lightningtalk
Netflix s2e1lightningtalkNetflix s2e1lightningtalk
Netflix s2e1lightningtalk
 
An Introduction to Microservices
An Introduction to MicroservicesAn Introduction to Microservices
An Introduction to Microservices
 
Designing the Call of Cthulhu app with Google App Engine
Designing the Call of Cthulhu app with Google App EngineDesigning the Call of Cthulhu app with Google App Engine
Designing the Call of Cthulhu app with Google App Engine
 
Provisioning with Terraform - AzureDay Reloaded
Provisioning with Terraform - AzureDay Reloaded Provisioning with Terraform - AzureDay Reloaded
Provisioning with Terraform - AzureDay Reloaded
 
From the Trenches: Effectively Scaling Your Cloud Infrastructure and Optimizi...
From the Trenches: Effectively Scaling Your Cloud Infrastructure and Optimizi...From the Trenches: Effectively Scaling Your Cloud Infrastructure and Optimizi...
From the Trenches: Effectively Scaling Your Cloud Infrastructure and Optimizi...
 
Empowering Publishers - Hosting Provider Selection Process - May-15-2013
Empowering Publishers - Hosting Provider Selection Process - May-15-2013Empowering Publishers - Hosting Provider Selection Process - May-15-2013
Empowering Publishers - Hosting Provider Selection Process - May-15-2013
 
Meetup#7: AWS LightSail - The Simplicity of VPS - The Power of AWS
Meetup#7: AWS LightSail - The Simplicity of VPS - The Power of AWSMeetup#7: AWS LightSail - The Simplicity of VPS - The Power of AWS
Meetup#7: AWS LightSail - The Simplicity of VPS - The Power of AWS
 
Monitoring microservices platform
Monitoring microservices platformMonitoring microservices platform
Monitoring microservices platform
 
How IT at Getty Images Brokers Cloud Services
How IT at Getty Images Brokers Cloud ServicesHow IT at Getty Images Brokers Cloud Services
How IT at Getty Images Brokers Cloud Services
 
Deep Dive Into Elasticsearch: Establish A Powerful Log Analysis System With E...
Deep Dive Into Elasticsearch: Establish A Powerful Log Analysis System With E...Deep Dive Into Elasticsearch: Establish A Powerful Log Analysis System With E...
Deep Dive Into Elasticsearch: Establish A Powerful Log Analysis System With E...
 
Apache CloudStack 4.2: A First Look
Apache CloudStack 4.2: A First LookApache CloudStack 4.2: A First Look
Apache CloudStack 4.2: A First Look
 
Service fabric overview
Service fabric overviewService fabric overview
Service fabric overview
 
JustLetMeCode-Final
JustLetMeCode-FinalJustLetMeCode-Final
JustLetMeCode-Final
 

Ähnlich wie Project a day 4 all

7. Attacking Android Applications (Part 2)
7. Attacking Android Applications (Part 2)7. Attacking Android Applications (Part 2)
7. Attacking Android Applications (Part 2)Sam Bowne
 
Developing Windows Phone Apps with Maps and Location Services
Developing Windows Phone Apps with Maps and Location ServicesDeveloping Windows Phone Apps with Maps and Location Services
Developing Windows Phone Apps with Maps and Location ServicesNick Landry
 
Mobile AR Lecture 7 - Introduction to Vuforia
Mobile AR Lecture 7 - Introduction to VuforiaMobile AR Lecture 7 - Introduction to Vuforia
Mobile AR Lecture 7 - Introduction to VuforiaMark Billinghurst
 
From MEAN to the MERN Stack
From MEAN to the MERN StackFrom MEAN to the MERN Stack
From MEAN to the MERN StackTroy Miles
 
Building an Autoscaler for DigitalOcean - DevOps Days Denver 2015
Building an Autoscaler for DigitalOcean - DevOps Days Denver 2015Building an Autoscaler for DigitalOcean - DevOps Days Denver 2015
Building an Autoscaler for DigitalOcean - DevOps Days Denver 2015Jordan Stone
 
CNIT 128 7. Attacking Android Applications (Part 2)
CNIT 128 7. Attacking Android Applications (Part 2)CNIT 128 7. Attacking Android Applications (Part 2)
CNIT 128 7. Attacking Android Applications (Part 2)Sam Bowne
 
CNIT 128 7. Attacking Android Applications (Part 2)
CNIT 128 7. Attacking Android Applications (Part 2)CNIT 128 7. Attacking Android Applications (Part 2)
CNIT 128 7. Attacking Android Applications (Part 2)Sam Bowne
 
Deep-Dive to Application Insights
Deep-Dive to Application Insights Deep-Dive to Application Insights
Deep-Dive to Application Insights Gunnar Peipman
 
Introducing the Applitools Self Healing Execution Cloud.pdf
Introducing the Applitools Self Healing Execution Cloud.pdfIntroducing the Applitools Self Healing Execution Cloud.pdf
Introducing the Applitools Self Healing Execution Cloud.pdfApplitools
 
Barbri: Barbri's journey from on-prem to cloud, featuring auto-remediation w...
Barbri: Barbri's  journey from on-prem to cloud, featuring auto-remediation w...Barbri: Barbri's  journey from on-prem to cloud, featuring auto-remediation w...
Barbri: Barbri's journey from on-prem to cloud, featuring auto-remediation w...Dynatrace
 
Barbri barbri's journey from on-prem to cloud, featuring auto-remediation wi...
Barbri  barbri's journey from on-prem to cloud, featuring auto-remediation wi...Barbri  barbri's journey from on-prem to cloud, featuring auto-remediation wi...
Barbri barbri's journey from on-prem to cloud, featuring auto-remediation wi...Laura Stack
 
AngularJS One Day Workshop
AngularJS One Day WorkshopAngularJS One Day Workshop
AngularJS One Day WorkshopShyam Seshadri
 
How we built a job board in one week with JHipster
How we built a job board in one week with JHipsterHow we built a job board in one week with JHipster
How we built a job board in one week with JHipsterKile Niklawski
 
How we built a job board in one week with JHipster - @KileNiklawski @IpponUSA
How we built a job board in one week with JHipster - @KileNiklawski @IpponUSAHow we built a job board in one week with JHipster - @KileNiklawski @IpponUSA
How we built a job board in one week with JHipster - @KileNiklawski @IpponUSAKile Niklawski
 
Michael Allen's AWS user group talk ""Developers, Start Your Engines - Hands ...
Michael Allen's AWS user group talk ""Developers, Start Your Engines - Hands ...Michael Allen's AWS user group talk ""Developers, Start Your Engines - Hands ...
Michael Allen's AWS user group talk ""Developers, Start Your Engines - Hands ...AWS Chicago
 
Using AI To Place VMs On Hypervisors
Using AI To Place VMs On HypervisorsUsing AI To Place VMs On Hypervisors
Using AI To Place VMs On HypervisorsShapeBlue
 

Ähnlich wie Project a day 4 all (20)

7. Attacking Android Applications (Part 2)
7. Attacking Android Applications (Part 2)7. Attacking Android Applications (Part 2)
7. Attacking Android Applications (Part 2)
 
Developing Windows Phone Apps with Maps and Location Services
Developing Windows Phone Apps with Maps and Location ServicesDeveloping Windows Phone Apps with Maps and Location Services
Developing Windows Phone Apps with Maps and Location Services
 
Mobile AR Lecture 7 - Introduction to Vuforia
Mobile AR Lecture 7 - Introduction to VuforiaMobile AR Lecture 7 - Introduction to Vuforia
Mobile AR Lecture 7 - Introduction to Vuforia
 
Android Mobile Development Course
Android Mobile Development Course Android Mobile Development Course
Android Mobile Development Course
 
From MEAN to the MERN Stack
From MEAN to the MERN StackFrom MEAN to the MERN Stack
From MEAN to the MERN Stack
 
Introduction to Google App Engine
Introduction to Google App EngineIntroduction to Google App Engine
Introduction to Google App Engine
 
Building an Autoscaler for DigitalOcean - DevOps Days Denver 2015
Building an Autoscaler for DigitalOcean - DevOps Days Denver 2015Building an Autoscaler for DigitalOcean - DevOps Days Denver 2015
Building an Autoscaler for DigitalOcean - DevOps Days Denver 2015
 
CNIT 128 7. Attacking Android Applications (Part 2)
CNIT 128 7. Attacking Android Applications (Part 2)CNIT 128 7. Attacking Android Applications (Part 2)
CNIT 128 7. Attacking Android Applications (Part 2)
 
CNIT 128 7. Attacking Android Applications (Part 2)
CNIT 128 7. Attacking Android Applications (Part 2)CNIT 128 7. Attacking Android Applications (Part 2)
CNIT 128 7. Attacking Android Applications (Part 2)
 
Deep-Dive to Application Insights
Deep-Dive to Application Insights Deep-Dive to Application Insights
Deep-Dive to Application Insights
 
Introducing the Applitools Self Healing Execution Cloud.pdf
Introducing the Applitools Self Healing Execution Cloud.pdfIntroducing the Applitools Self Healing Execution Cloud.pdf
Introducing the Applitools Self Healing Execution Cloud.pdf
 
Barbri: Barbri's journey from on-prem to cloud, featuring auto-remediation w...
Barbri: Barbri's  journey from on-prem to cloud, featuring auto-remediation w...Barbri: Barbri's  journey from on-prem to cloud, featuring auto-remediation w...
Barbri: Barbri's journey from on-prem to cloud, featuring auto-remediation w...
 
Barbri barbri's journey from on-prem to cloud, featuring auto-remediation wi...
Barbri  barbri's journey from on-prem to cloud, featuring auto-remediation wi...Barbri  barbri's journey from on-prem to cloud, featuring auto-remediation wi...
Barbri barbri's journey from on-prem to cloud, featuring auto-remediation wi...
 
Java Microservices_64 Hours_Day wise plan (002).pdf
Java Microservices_64 Hours_Day wise plan (002).pdfJava Microservices_64 Hours_Day wise plan (002).pdf
Java Microservices_64 Hours_Day wise plan (002).pdf
 
Java Microservices_64 Hours_Day wise plan (002).pdf
Java Microservices_64 Hours_Day wise plan (002).pdfJava Microservices_64 Hours_Day wise plan (002).pdf
Java Microservices_64 Hours_Day wise plan (002).pdf
 
AngularJS One Day Workshop
AngularJS One Day WorkshopAngularJS One Day Workshop
AngularJS One Day Workshop
 
How we built a job board in one week with JHipster
How we built a job board in one week with JHipsterHow we built a job board in one week with JHipster
How we built a job board in one week with JHipster
 
How we built a job board in one week with JHipster - @KileNiklawski @IpponUSA
How we built a job board in one week with JHipster - @KileNiklawski @IpponUSAHow we built a job board in one week with JHipster - @KileNiklawski @IpponUSA
How we built a job board in one week with JHipster - @KileNiklawski @IpponUSA
 
Michael Allen's AWS user group talk ""Developers, Start Your Engines - Hands ...
Michael Allen's AWS user group talk ""Developers, Start Your Engines - Hands ...Michael Allen's AWS user group talk ""Developers, Start Your Engines - Hands ...
Michael Allen's AWS user group talk ""Developers, Start Your Engines - Hands ...
 
Using AI To Place VMs On Hypervisors
Using AI To Place VMs On HypervisorsUsing AI To Place VMs On Hypervisors
Using AI To Place VMs On Hypervisors
 

Mehr von Goran Djonovic

Eca online-seminar-session-1.pptx
Eca online-seminar-session-1.pptxEca online-seminar-session-1.pptx
Eca online-seminar-session-1.pptxGoran Djonovic
 
Teaching kids programming
Teaching kids programmingTeaching kids programming
Teaching kids programmingGoran Djonovic
 
Project a day 2 introduction to android studio
Project a day 2   introduction to android studioProject a day 2   introduction to android studio
Project a day 2 introduction to android studioGoran Djonovic
 
Project a day 2 android application fundamentals
Project a day 2   android application fundamentalsProject a day 2   android application fundamentals
Project a day 2 android application fundamentalsGoran Djonovic
 
Project a day 1 making a great app
Project a day 1   making a great appProject a day 1   making a great app
Project a day 1 making a great appGoran Djonovic
 
Project a day 1 introduction to project a
Project a day 1   introduction to project aProject a day 1   introduction to project a
Project a day 1 introduction to project aGoran Djonovic
 
Project a day 1 introduction to android
Project a day 1   introduction to androidProject a day 1   introduction to android
Project a day 1 introduction to androidGoran Djonovic
 
Project a day 1 desinging android ui
Project a day 1   desinging android uiProject a day 1   desinging android ui
Project a day 1 desinging android uiGoran Djonovic
 
Project a day 1 career in mobile development
Project a day 1   career in mobile developmentProject a day 1   career in mobile development
Project a day 1 career in mobile developmentGoran Djonovic
 
Project a day 3 services
Project a day 3   servicesProject a day 3   services
Project a day 3 servicesGoran Djonovic
 

Mehr von Goran Djonovic (12)

Eca online-seminar-session-1.pptx
Eca online-seminar-session-1.pptxEca online-seminar-session-1.pptx
Eca online-seminar-session-1.pptx
 
Teaching kids programming
Teaching kids programmingTeaching kids programming
Teaching kids programming
 
Project a day 2 introduction to android studio
Project a day 2   introduction to android studioProject a day 2   introduction to android studio
Project a day 2 introduction to android studio
 
Project a day 2 android application fundamentals
Project a day 2   android application fundamentalsProject a day 2   android application fundamentals
Project a day 2 android application fundamentals
 
Project a day 1 making a great app
Project a day 1   making a great appProject a day 1   making a great app
Project a day 1 making a great app
 
Project a day 1 introduction to project a
Project a day 1   introduction to project aProject a day 1   introduction to project a
Project a day 1 introduction to project a
 
Project a day 1 introduction to android
Project a day 1   introduction to androidProject a day 1   introduction to android
Project a day 1 introduction to android
 
Project a day 1 desinging android ui
Project a day 1   desinging android uiProject a day 1   desinging android ui
Project a day 1 desinging android ui
 
Project a day 1 career in mobile development
Project a day 1   career in mobile developmentProject a day 1   career in mobile development
Project a day 1 career in mobile development
 
Project a day 3 services
Project a day 3   servicesProject a day 3   services
Project a day 3 services
 
Stc ftn-wp7-intro
Stc ftn-wp7-introStc ftn-wp7-intro
Stc ftn-wp7-intro
 
Flatland
FlatlandFlatland
Flatland
 

Kürzlich hochgeladen

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 

Kürzlich hochgeladen (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 

Project a day 4 all

  • 2. This is our last day, and yesterday we talk about: • Monetizing your app • Publishing your app • Before you upload you APK • Using Services in you app • What is a Service • Tell me something about Service priority • How do we start a service • Cloud solutions • Training options • Pluralsight • Coursera (this is what I’ve forgot yesterday) 2
  • 4. Potential Revenues sources • Pay-per download • In-app advertising • In-app purchase • Subscriptions • Affiliate sales • Sponsorship • Promotions • Analytics 4
  • 6. Before we start Day 4 lectures • Let’s look at Eclipse IDE  • How to import projects • What android device do you have??? • What kind of device do you have • http://developer.samsung.com/android/tools-sdks/Samsung-Andorid-USBDriver-for-Windows • How to use device to run app 6
  • 8. Android location basics • Accessing the location systems • Location providers and security • Handling location information • Receiving location updates • Getting a single location value 8
  • 9. Accessing the location system • Location manager is the root of the location system • • • • • Get current location Monitor for changes in status of location hardware Request notification when reaching a location Exposed as system service Use | Context.getSystemService (Context.LOCATION_SERVICE) 9
  • 10. Selecting a location provider • Global Positioning System (GPS) • • • • LocationManager.GPS_PROVIDER Satellite based Extremely accurate (3 meters) Very power intensive • Network-based • • • • LocationMAnage.NETWORK_PROVIDER Uses a combination of known Wi-Fi hotspots and cellular towers Accuracy varies (10m-1km) Less power 10
  • 11. Location is a secured service • You must request permissions • How? • Different permission depending on location accuracy • Course location providers • Network provider is considered low-accuracy (a.k.a course) • Request ACCESS_COURSE_LOCATION permission • Fine location providers • GPS provider is consider high-accuracy (a.k.a fine) • Request ACCESS_FINE_LOCATION • Fine location permission implies course 11
  • 12. Location provided through callbacks • Implement the LocationListener interface to receive updates • OnLocationChanged • onProviderEnabled/onProviderDisabled • onStatusChanged 12
  • 13. Understanding Location class • Providers row location information • Core fields • getLatitude, getLongitude, getAccuracy • Provides latitude/longitude and accuracy in meters • Time • getTime (UTC) • getElapsedRealtimeNanos • Added in Android 4.2 • Other information varies depending on provider • getSpeed, getAltitude ( use has method to check) 13
  • 15. Steps to receive location updates • Request a reference to location service • Create instance of LocationListener implementation • Call the location service’s requestLocationUpdates method 15
  • 16. Getting a single location value • Getting a single location value quickly • LocationManage.getLastKnownLocation • Immediately returns the last Location received by the provider • Getting a single, current location value • Locationmanage.requestSingleUpdate • Uses callback model like requestLocationUpdates • To run callback on main thread, pass null as the 3rd (Looper) parameter 16
  • 17. Summary • The LocationManage is exposed as a system service • Location Providers offer varaying features • GPS • Network • Location requires appropriate security privilages • Implement LocationListener interface to receive location callbacks • Location class contains raw details • Get single location quickly with getLastKnownLocation (watch the time) 17
  • 19. And now – THE TEST  • Just a few questions from summaries 19
  • 21. DEMO • We did the talk yesterday 21
  • 22. Workshop Evaluation • Why it is so important • What you need to pay attention to 22
  • 23. Do we have time to look into progress bars • Let check documentation 23
  • 24. How can you connect with me • Twitter: @gdjonovic – fastest way to ask question and get answer • Email: djonovic.g@gmail – send me an email to get material • LinkedIn: http://www.linkedin.com/in/gdjonovic • Slide share: http://www.slideshare.net/gorandjonovic • Git hub: https://github.com/gdjonovic • Blog: http://gdjonovic.me/ - fresh 24/13
  • 25. Farewell speech • You are smart – Question everything • Solve problems • Be passionate • Go out your comfort zone – grow • Share your knowledge • Learn true value 25
  • 26. 26
  • 27. 27