SlideShare una empresa de Scribd logo
1 de 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?

Más contenido relacionado

La actualidad más candente

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
 

La actualidad más candente (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
 

Similar a DAY 3 Summary and Location Basics

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
 

Similar a DAY 3 Summary and Location Basics (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
 

Más de 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
 

Más de 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
 

Último

Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 

Último (20)

Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 

DAY 3 Summary and Location Basics

  • 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