There is a weather forecast demand in the project. I found a suggestion on the Internet for most people to use WebService to obtain data. So I tried to do it. I did not know it, but I learned a lot from it.
First, let's get the weather service provided by the National Meteorological Administration through WebService.
The android SDK does not provide a library to call WebService. Therefore, you must use a th
The super simple and practical background Implementation of weather forecast on the public platform, simple and practical weather forecast
Ultra-simple and practical background Implementation of weather forecasts on the public platform
OverviewSome time ago, I was developing my own public platform and needed to implement the
Use Google weather API to query weather forecasts
Google weather API only supports querying by zip code in the United States. For example:Http://www.google.com/ig/api? Hl = ZH-CN weather = 94043(94043 is the zip code of Mountain View city, California, USA)
In addition to the United States, you must use latitude
Weather forecast is the first need of information, can be obtained from the WAP website of China Weather Network, because WAP Site page is simple, easy to crawl content. The website is: http://wap.weather.com.cn/wap/, the default is Beijing's weather forecast, can change the city. A city's weather forecast corresponds
[API] Sina weather interface Beta, api Sina weather beta
Sina's daily interface was well recognized by the public, but it was very ugly after Baidu, so he built a tool class. Here, he helped to write down the daily interface, see where to change.
Jar name: NonentityUtil
Class Name: SinaWeatherUtil, such as Sina Tianqi Util
Method Name: getWeatherByCity (String city, int forecastDays), the Gender city regi
Preface
We are writing a Web application, always think of their own site more beautiful, more features, sometimes write some small tools or add a small plug-in will make our site more perfect. such as the perpetual calendar function, for example, we now want to talk about the weather forecast function.
Of course we can't use professional satellites to receive data, so our weather data comes from the existi
Recently, the project has been very busy, and many of the company's chores have come to me, so I can't concentrate on the project, simply, today I took the time to play with Google's weather forecast service. Believe in this articleArticleTo let you know how to initiate an HTTP access request (webrequest) under. Net CF and process the requested data, such as XML data and image data. Of course, it's also entertaining to share it here!
Start, we need
Android simple weather forecast and android Weather Forecast
The interface uses Baidu's weather interface:
Http://api.map.baidu.com/telematics/v3/weather? Location = Beijing output = json ak = yourkey
Baidu ak application address: http://lbsyun.baidu.com/apiconsole/key
The city is stored in the spinner class, the x
The example described in this article is the code for the analysis of weather data for the Android weather forecast, which enables the acquisition of HttpGet objects to read weather data, and to parse weather data from the data, such as temperature, temperature, wind power, wind direction,
Weather forecast has been a basic function of the major sites, the recent small series also want to make one on the site, a little bit, in the network search for a long time, finally found the open source free weather API and all regional code (National Weather Bureau), as follows:Weather interface provided by the National We
Android Program-National Weather Forecast query (aggregated data development), android Weather Forecast
I. project demonstration effect:
Project source code:Http://yunpan.cn/cZVWIieuFyK9I access password 2eac
Ii. Use the aggregate data SDK: (1) aggregated data official website address: http://www.juhe.cn/
(2) register an account-create a new application (on the personal Center page-Data Center-apply for
There is nothing to do to get the weather API, roughly checked, the domestic relatively good or Chinese weather Network (China Meteorological station), the portal has Sina and Tencent (search), other some small sites worry about instability, so no use.
The simplest script. Send a request to get JSON and parse it and simply output it to the screen.
This is only used in the Beijing area, and other areas nee
Together to develop Android weather software (I), android weather
Starting from today, I plan to introduce how to develop an Android weather software, which involves many basic knowledge points, it is suitable for beginners or those who are new to Android development to learn and exchange ideas!
So I will first analyze the demand of this
Yahoo weather API usage notes, Yahoo weather apiBase_url:Https://query.yahooapis.com/v1/public/yql? Q =, public query interface, limited query timesHttps://query.yahooapis.com/v1/yql? Q =: Get the ApkId after registration. There is a limit on the number of queries, but it is enough. 0.1 million times/dayStep 1: locate the user's location on the mobile phone end (query by IP address, or ....), Obtain the nam
This site part of the article translated from English documents, but limited to my English proficiency limited, there is no way to understand the statement, the end of the article is generally given the source of the translation, good English parents can refer to the original version of English. Another part of the site is gradually improving the function ...
Please look forward to! If there is a problem, you can go to the message feedback!
Weather fo
After hard work, we modified the weather. js file to get the weather forecast for China!
It has been said by a friend that weather forecasts cannot be used in China because of wlsrvc. when the DLL file detects that the region is set to China, it returns 1506, prompting "your current country or region does not support this service. "
In fact, if we enter the addre
Note: Update the weather, need to network normal connection in the case can proceed.
If there are no weather components we need to pull a weather component here is not introduced, we recommend an article for you (Samsung mobile phone G7109 Weather Group How to add? g7109 Add weath
1. Under the Standby page, click "Application".2. Click on the "Panel" at the top of the screen.
3. Slide the screen right and left to find the "weather" group pieces.
4. Hold down the "weather" group, drag it to the location you want to add, let go.
5. Tap the "Add City" on the weather panel.
6. In the search box, enter th
The National Weather Service provides three types of data
Web site in:
Http://www.weather.com.cn/data/sk/101010100.html
Http://www.weather.com.cn/data/cityinfo/101010100.html
Http://m.weather.com.cn/data/101010100.html
The last one is the most comprehensive analysis.
Data parsing format:
The JSON data provided by the first URL is:
Copy Code code as follows:
{"Weatherinfo": {"City": "Beijing", "Cityid": "101010100", "temp": "2",
This site part of the article translated from English documents, but limited to my English proficiency limited, there is no way to understand the statement, the end of the article is generally given the source of the translation, good English parents can refer to the original version of English. Another part of the site is gradually improving the function ...Please look forward to! If there is a problem, you can go to the message feedback!Weather fore
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.