{"id":15971240,"url":"https://github.com/dolph/weather-forecasting-android","last_synced_at":"2025-04-04T15:43:24.085Z","repository":{"id":141853520,"uuid":"162749665","full_name":"dolph/weather-forecasting-android","owner":"dolph","description":"WORK IN PROGRESS","archived":false,"fork":false,"pushed_at":"2019-01-10T22:00:44.000Z","size":744,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-10T01:38:01.909Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://console.bluemix.net/developer/mobile/create-app?defaultDeploymentToolchain=\u0026defaultLanguage=ANDROID\u0026env_id=ibm%3Ayp%3Aus-south\u0026starterKit=fad1d49e-f7b6-3aff-9b53-14673fca4399\u0026tenantNavMode=true","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dolph.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-21T19:14:31.000Z","updated_at":"2019-04-08T18:39:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"622a5958-e562-4e6b-a42a-1cf0f55a2ac6","html_url":"https://github.com/dolph/weather-forecasting-android","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolph%2Fweather-forecasting-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolph%2Fweather-forecasting-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolph%2Fweather-forecasting-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolph%2Fweather-forecasting-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dolph","download_url":"https://codeload.github.com/dolph/weather-forecasting-android/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247208018,"owners_count":20901568,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-07T20:20:30.473Z","updated_at":"2025-04-04T15:43:24.069Z","avatar_url":"https://github.com/dolph.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://img.shields.io/badge/IBM%20Cloud-powered-blue.svg)](https://bluemix.net)\n[![](https://img.shields.io/badge/platform-android-lightgrey.svg?style=flat)](https://developer.android.com/index.html)\n\n# Create an Android weather application in Java\n\n\u003e We have a similar pattern available for [iOS](https://github.com/IBM/weather-forecasting-ios), as well!\n\nIn this code pattern, you will create an Android weather forecasting app using Google Maps and the Weather Company Data service. Use this service to consume current conditions or hourly, daily, and intraday forecasts based on Google Maps geolocation coordinations of your user's device. Use this pattern to solve real business problems where weather has a significant impact on the outcome.\n\nWhen you have completed this code pattern, you will understand how to:\n\n* Provision and integrate the Weather Company Data service\n* Use Geolocation information integrated with Google Maps\n* Connect to additional IBM Cloud services\n\n![](README_Images/architecture.png)\n\n## Steps\n\n\u003e As an alternative to the steps below, you can [create this project as a starter kit on IBM Cloud](https://console.bluemix.net/developer/mobile/create-app?defaultDeploymentToolchain=\u0026defaultLanguage=ANDROID\u0026env_id=ibm%3Ayp%3Aus-south\u0026starterKit=fad1d49e-f7b6-3aff-9b53-14673fca4399\u0026tenantNavMode=true), which automatically provisions required services, and injects service credentials into a custom fork of this pattern. Then, you can skip directly to step 4 below.\n\n1. [Install development tools](#1-install-development-tools)\n1. [Authenticate with Google Maps](#2-authenticate-with-google-maps)\n1. [Create a Weather service instance](#3-create-a-weather-service-instance)\n1. [Run](#4-run)\n\n### 1. Install development tools\n\nEnsure you have the latest versions of [Android Studio](https://developer.android.com/studio/index.html) and [Gradle](https://gradle.org/gradle-download/) installed.\n\n### 2. Authenticate with Google Maps\n\nOpen the project in Android Studio and perform a Gradle Sync.\n\n[Obtain a Google Maps API Key from Google](https://developers.google.com/maps/documentation/android-sdk/signup).\n\nNavigate to `res/values/google_maps_api.xml`, and input your API Key:\n\n```xml\n\u003cresources\u003e\n    \u003cstring name=\"google_maps_key\" templateMergeStrategy=\"preserve\" translatable=\"false\"\u003eYOUR_KEY_HERE\u003c/string\u003e\n\u003c/resources\u003e\n```\n\n### 3. Create a Weather service instance\n\nUse the [IBM Cloud Catalog](https://console.ng.bluemix.net/catalog/) and create a [Weather Company Data](https://console.ng.bluemix.net/catalog/services/weather-company-data/) service instance.\n\nNavigate to `res/values/weather_credentials.xml` and input your credential information:\n\n```xml\n\u003cresources\u003e\n    \u003cstring name=\"weather_username\"\u003eYOUR_USERNAME_HERE\u003c/string\u003e\n    \u003cstring name=\"weather_password\"\u003eYOUR_PASSWORD_HERE\u003c/string\u003e\n    \u003cstring name=\"weather_host\"\u003eYOUR_HOST_HERE\u003c/string\u003e\n\u003c/resources\u003e\n```\n\nReplace the service credentials from your Weather instance:\n\n![Service credentials](README_Images/service-credentials.png)\n\n\u003e **Note:** If one of your credentials has a special character (for example: `\u0026`) you might need to escape it, as follows:  `\u0026amp;`\n\n### 4. Run\n\nClick **Run** to start the app in Android Studio.\n\n![Weather App Screenshot](README_Images/weather.png)\n\nThe application allows you determine the forecast of any location using your Weather instance on IBM Cloud. Long click to view the forecast.\n\n## License\n\nThis code pattern is licensed under the Apache License, Version 2. Separate third-party code objects invoked within this code pattern are licensed by their respective providers pursuant to their own separate licenses. Contributions are subject to the [Developer Certificate of Origin, Version 1.1](https://developercertificate.org/) and the [Apache License, Version 2](https://www.apache.org/licenses/LICENSE-2.0.txt).\n\n[Apache License FAQ](https://www.apache.org/foundation/license-faq.html#WhatDoesItMEAN)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolph%2Fweather-forecasting-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdolph%2Fweather-forecasting-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolph%2Fweather-forecasting-android/lists"}