SlideShare une entreprise Scribd logo
1  sur  18
IntroductieArcGIS API for Android Marco Wagemakers – Esri Nederland
Inhoud Introductie Android achtergrond informatie ArcGIS forAndroid Development Road ahead
ArcGIS for Android: Public  Beta Feb 2011 Final Q2 2011 cloud Web ,[object Object]
maken
beheren
samenwerken
analyseren
ontdekkenenterprise Mobile lokaal Desktop Positionering Vollediggeïntegreerd Desktop, web, mobiel ArcGIS Mobile Microsoft Windows Applicatie / SDK  ArcGIS for SmartPhone ArcGIS for iOS ArcGIS for Windows phone ArcGIS for Android Applicatie API
Android?
Functioneeloverzicht Mapping  Layers: Map, Tile, Graphic, Feature Callout Functionaliteit (Tasks) Identify, Query, Locator, Geoprocessor Editing Template-based, vergelijkbaar met andere web APIs Connected via feature layer
Ontwikkelenvoor Android Android device Eclipse Dalvik VM Write Java Android SDK Run app Compile to  Dalvik classes Launch as  Android app Android app  framework Deploy to device/emulator Debug/log app
Layout Android Componenten Activity Activity App View View View View Service Service Event  Listeners /  Handlers Data /  Content  Providers Event  Listeners /  Handlers Event  Listeners /  Handlers
Watheeft u nodig? Eclipse – 3.5 or 3.6 Android SDK – 2.1, 2.2, 2.3 ArcGIS for Android SDK API Eclipse plugin Samples Doc
Een Android project /src Your code /gen Built classes /res Your resources Images Styles xml Layout xml AndroidManifest.xml Application configuration
Kaartopenen Layout Grootte en positie Tonen attributes (afhankelijk van container) Standaardfunctionaliteit Touch events – in/uitzoomen, schuiven Maatwerkfunctionaliteit Toevoegen van event listeners en handlers Initialisatie Controle of de kaart is geladen Meer later…
Hoe voegt u kaartlagen toe in xml <com.esri.android.map.MapView xmlns:android="http://schemas.android.com/apk/res/android" 		android:id="@+id/map”android:layout_width="fill_parent" 	android:layout_height="fill_parent” initExtent="-13631799.97888788 4545982.2729670685 13630011.658698952 	4547213.547551089"> <com.esri.android.map.ags.ArcGISTiledMapServiceLayer url="http://services.arcgisonline.com/ArcGIS/rest/services/				World_Topo_Map/MapServer" /> <com.esri.android.map.ags.ArcGISDynamicMapServiceLayer url="http://mobilesampleserver.arcgisonline.com/ArcGIS/rest/				services/SanFranFireInfo/MapServer" /> <com.esri.android.map.GraphicsLayer android:id="@+id/graphics" /> <com.esri.android.map.ags.ArcGISFeatureLayer url="http://mobilesampleserver.arcgisonline.com/ArcGIS/rest/				services/HaightAshburyHydrantsFs/FeatureServer" mode="snapshot" />
Hoe voegt u kaartlagen toe in de code Dynamic map layer 	ArcGISDynamicMapServiceLayer sanFranFireInfo = new 		ArcGISDynamicMapServiceLayer(this,  "http://mobilesampleserver.arcgisonline.com/ArcGIS/rest/services/		SanFranFireInfo/MapServer"); map.addLayer(sanFranFireInfo); FeatureLayer ArcGISFeatureLayer.OptionssanFranHydrantsOptions = new ArcGISFeatureLayer.Options(); sanFranHydrantsOptions.mode = ArcGISFeatureLayer.MODE.SNAPSHOT; ArcGISFeatureLayersanFranHydrants = newArcGISFeatureLayer(this,  "http://mobilesampleserver.arcgisonline.com/ArcGIS/rest/services/		HaightAshburyHydrantsFs/FeatureServer", sanFranHydrantsOptions); map.addLayer(sanFranHydrants);
Toevoegen data en kaarten demo

Contenu connexe

Dernier

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
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
 
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
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
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
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
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
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 

Dernier (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
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
 
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
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
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
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
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
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 

En vedette

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 EngineeringsPixeldarts
 
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 HealthThinkNow
 
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.pdfmarketingartwork
 
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 2024Neil Kimberley
 
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)contently
 
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 2024Albert Qian
 
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 InsightsKurio // The Social Media Age(ncy)
 
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 2024Search Engine Journal
 
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 summarySpeakerHub
 
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 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 Tessa Mero
 
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 IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
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 managementMindGenius
 
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...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

En vedette (20)

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...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

Introductie ArcGIS for Android

  • 1. IntroductieArcGIS API for Android Marco Wagemakers – Esri Nederland
  • 2. Inhoud Introductie Android achtergrond informatie ArcGIS forAndroid Development Road ahead
  • 3.
  • 8. ontdekkenenterprise Mobile lokaal Desktop Positionering Vollediggeïntegreerd Desktop, web, mobiel ArcGIS Mobile Microsoft Windows Applicatie / SDK ArcGIS for SmartPhone ArcGIS for iOS ArcGIS for Windows phone ArcGIS for Android Applicatie API
  • 10. Functioneeloverzicht Mapping Layers: Map, Tile, Graphic, Feature Callout Functionaliteit (Tasks) Identify, Query, Locator, Geoprocessor Editing Template-based, vergelijkbaar met andere web APIs Connected via feature layer
  • 11. Ontwikkelenvoor Android Android device Eclipse Dalvik VM Write Java Android SDK Run app Compile to Dalvik classes Launch as Android app Android app framework Deploy to device/emulator Debug/log app
  • 12. Layout Android Componenten Activity Activity App View View View View Service Service Event Listeners / Handlers Data / Content Providers Event Listeners / Handlers Event Listeners / Handlers
  • 13. Watheeft u nodig? Eclipse – 3.5 or 3.6 Android SDK – 2.1, 2.2, 2.3 ArcGIS for Android SDK API Eclipse plugin Samples Doc
  • 14. Een Android project /src Your code /gen Built classes /res Your resources Images Styles xml Layout xml AndroidManifest.xml Application configuration
  • 15. Kaartopenen Layout Grootte en positie Tonen attributes (afhankelijk van container) Standaardfunctionaliteit Touch events – in/uitzoomen, schuiven Maatwerkfunctionaliteit Toevoegen van event listeners en handlers Initialisatie Controle of de kaart is geladen Meer later…
  • 16. Hoe voegt u kaartlagen toe in xml <com.esri.android.map.MapView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/map”android:layout_width="fill_parent" android:layout_height="fill_parent” initExtent="-13631799.97888788 4545982.2729670685 13630011.658698952 4547213.547551089"> <com.esri.android.map.ags.ArcGISTiledMapServiceLayer url="http://services.arcgisonline.com/ArcGIS/rest/services/ World_Topo_Map/MapServer" /> <com.esri.android.map.ags.ArcGISDynamicMapServiceLayer url="http://mobilesampleserver.arcgisonline.com/ArcGIS/rest/ services/SanFranFireInfo/MapServer" /> <com.esri.android.map.GraphicsLayer android:id="@+id/graphics" /> <com.esri.android.map.ags.ArcGISFeatureLayer url="http://mobilesampleserver.arcgisonline.com/ArcGIS/rest/ services/HaightAshburyHydrantsFs/FeatureServer" mode="snapshot" />
  • 17. Hoe voegt u kaartlagen toe in de code Dynamic map layer ArcGISDynamicMapServiceLayer sanFranFireInfo = new ArcGISDynamicMapServiceLayer(this, "http://mobilesampleserver.arcgisonline.com/ArcGIS/rest/services/ SanFranFireInfo/MapServer"); map.addLayer(sanFranFireInfo); FeatureLayer ArcGISFeatureLayer.OptionssanFranHydrantsOptions = new ArcGISFeatureLayer.Options(); sanFranHydrantsOptions.mode = ArcGISFeatureLayer.MODE.SNAPSHOT; ArcGISFeatureLayersanFranHydrants = newArcGISFeatureLayer(this, "http://mobilesampleserver.arcgisonline.com/ArcGIS/rest/services/ HaightAshburyHydrantsFs/FeatureServer", sanFranHydrantsOptions); map.addLayer(sanFranHydrants);
  • 18. Toevoegen data en kaarten demo
  • 19. Informatiegeen Data Data omzettennaarInformatie Gebruikerservaringen Verzamelgegevens Uitvoeren van de functionaliteit Toont de uiteindelijkeinformatie en NIET alleen data Taken Query, Identify, Locators, Geoprocessor
  • 20. Verzamelengegevens MapView click event listeners setOnExtentChangedListener() setOnSingleTapListener() … (zoom, pinch, pan, longPress) Android View event listeners onClick, onTouch (caution!) Buttons Search Android default action picture
  • 21. Verkrijgen van data uit de lagen in de kaart All asynchronous methods Denkna over de processen… Feature layer queries selectFeatures() queryFeatures() GebruikCallbackListener<FeatureSet>() Query query = new Query(); query.setWhere(whereClause); sanFranHydrants.selectFeatures(query, SELECTION_METHOD.NEW, newCallbackListener<FeatureSet>() { publicvoidonCallback(FeatureSetqueryResults) { ...
  • 22. Queries op grafischelagen Nietasync Feature layer is a graphics layer! Graphic[] graphics = sanFranHydrants.getGraphics(x, y, 30);
  • 23. OverigeFuncties Type Functies QueryTask Werkt op een layer IdentifyTask Werkt in eenkaart Locators ArcGIS Server Bing Geoprocessor (GP) ArcGIS Server services
  • 24. Optiesvooractievefunctionaliteiten VergelijkbaaralseenAsyncTask Continuproces In eenafzonderlijk/anderandereproces Resultaatgetoond in de UI TaskListener Alleen Tasks (niet in locators/GP) ExecutorService Alleen Tasks (aanroepbaar<V>) Android service Processen
  • 25. EenAsync GP Task – doInBackground() classHydrantQueryextends AsyncTask<ArrayList<GPParameter>, Void, GPParameter[]> { GPParameter[] outParams = null; @Override protectedGPParameter[] doInBackground( ArrayList<GPParameter>... params1) { gp = newGeoProcessor(getString(R.string.geocodeService1)); gp.setOutSR(map.getSpatialReference().getID()); try { GPResultResourcegprr = gp.execute(params1[0]); outParams = gprr.getOutputParameters(); } catch (Exception e) { e.printStackTrace(); } returnoutParams; }
  • 26. EenAsync GP Task – onPostExecute() Toont het resultaat… @Override protectedvoidonPostExecute(GPParameter[] result) { if (outParams == null) { uiHandler.sendEmptyMessage(CANCEL_LOADING_WINDOW); return; } else { for (inti = 0; i < outParams.length; i++) { if (outParams[i] instanceofGPFeatureRecordSetLayer) { GPFeatureRecordSetLayerfsl = (GPFeatureRecordSetLayer) outParams[i]; if (fsl.getParamName().equals("Routes")) { ...
  • 27. Tonen resultaten in eenkaart callout Eén callout per kaart Bepalentekststijl Bepaleninhoud Text of Android View/ViewGroup TextViewmsg = newTextView(this); msg.setBackgroundColor(Color.BLACK); msg.setText(address); msg.setTextSize(12); msg.setTextColor(Color.WHITE); Callout callout = map.getCallout(); callout.setAnchor(Callout.ANCHOR_POSITION_FLOATING); callout.setStyle(R.xml.calloutstyle); callout.refresh(); callout.show(addressPoint, msg);
  • 28. Toevoegen Graphics Attributes (optioneel) Geometrie Symbologie Graphic g = new Graphic(); Graphic nearestRoute = fsl.getGraphics().get(0); g.setGeometry(nearestRoute.getGeometry()); SimpleLineSymbolsymb = newSimpleLineSymbol( Color.DKGRAY, 2); symb.setAlpha(170); symb.setAntiAlias(true); g.setSymbol(symb); graphicsLayer.addGraphic(g);
  • 29. Road ahead ArcGIS for Smartphone dezelfdefunctionaliteit Volgende release Q2 2011 Includes Meer layer types (bing/image server) Secure services En daarna VolgtWebmap support…. Disconnected workflows
  • 30. Vragen & Aanvullendeinformatie http://betacommunity.esri.com http://resources.arcgis.com/content/arcgis-android/api Marco Wagemakers – mwagemakers@esri.nl

Notes de l'éditeur

  1. Sits with other mobile apisDemand for a platform solution from customersSimilar in scope to web apisOff cycle – own release cycle benefits?Beta in febFinal – soon!
  2. Software stack for mobiles includes os, middleware and key appsHas an SDK – program in Java…Current release in gingerbreadBeta release is Honeycomb lots of work for tablet market
  3. To help understand components of android and how it worksDiagram of the development workflow
  4. App consists of one or more services AND/OR one or more activitiesService is long running application without GUIActivity provides a screen for users to interact with, multiple activities live in a stack… Has lifecycle to hook into for adding contentAn activity consists of one or more Views. Basic UI units – extended by widgets Button, text, image, date picker Receives eventsVia handlers or listeners- in view and activityData provided to view via data or content providers
  5. SDK demo API docs - MapView class, FEatureLayer class Samples doc Other docEclipse demo New application Sample application Add a map layer
  6. Samples use a fill parent
  7. Map viewInit extentTiled layerDynamic layerGraphics layerFeature layer – includes mode
  8. SDK demo API docs - MapView class, FEatureLayer class Samples doc Other docEclipse demo New application – called test New Sample application Add a map layer using right click
  9. UX is the majority of the code ( input and output)Esri task code not muchTasksEquate to tasks in the other apis
  10. MapView events – interactive People expect to be able to touch the map and it do something
  11. First way is to get data from layers in the mapOncalljback – convert data into information!
  12. No server callsNo attribute queriesOnce you have the graphic get attributes and show to the user
  13. Second way to get data ….Asynchronous – can run in many waysThreading…Query – single layer – attribute and spatialIdentify multiple layersLocatorsgeocode and reverse geocodeGP anything! Models soes etc…
  14. Async task shown todayUI thread anything which modifies the view must be run in UI thread, exceptionOthers options for refMore in advanced session
  15. Implement AsyncTaskParameterised using generics - Inputs, progress, resultDo in background runs in background
  16. Convert the data into informationGet out paramsCheck nullGet GP param name
  17. Get callout from the mapjSet style using xml, attributeset valur pairSet anchor floating or explicitly (left right top etc…)Show at pointCan move and set point
  18. Attributes – optional don’t need for adding a symbol to the mapGeometry – need this!Symbol – needIn this example geometry comes from a gprecordset layer