Together to develop Android weather software (I), android weather

Source: Internet
Author: User

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 weather software. What functions will we mainly implement?

1. query the weather information of any city in the country, province, city, and county, and switch freely

2. manually refresh Weather Information

3. Automatically refresh the weather in the background

4. automatically locate the weather information in the location

Based on the above requirement analysis, we will use Sqlite to store the list information of provinces, cities, and counties obtained from the Internet, and SharedPreference to store the weather conditions of the day for multiple times. Of course, we also need to use the Http protocol to obtain weather information. We will call the API of the China weather service. In addition, we will use Service and Recevier to automatically refresh the interface in the background and implement the following interface.


In addition, we will also apply some popular open-source frameworks on Git, such as LitePal. You can refer to the blog posts written by the big God Guo and parse Json data by Gson, this is the end of today's demand analysis and feature specifications, and the next blog will soon meet you.

Below is the application's Git Open Source Address, https://github.com/melhc/SimpleWeather

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.