How to use the Baidu API interface in Android programs:

Source: Internet
Author: User

Baidu Map, Baidu Voice, Baidu Navigation, Baidu positioning and so on.
The following is the use of Baidu Weather API, with weather query, city settings, SMS sharing weather and other basic functions, refreshing interface, not
After now because of Baidu key reason failure, can not update the weather. The AK in the Srceduswustiweatherwebupdateweather.java is replaced
Apply for the Baidu API KEY, application address Http://lbsyun.baidu.com/apiconsole/key. The code has a more detailed comment. The amount of code is not big, interested friends can check their own. Project Code UTF-8 default compiled version 4.2.2
Android app source use Baidu weather Love Weather Project source Android app source code use Baidu weather Love Weather Project source Android app source code use Baidu weather Love Weather Project source

Folder PATH List
Volume serial number is 767E7528 000A:8F50
E:.
│070705 (1). png
│070705 (2). png
│070705 (3). png
│javaapk.com file list Generation tool. bat
│ more source packaging download. url
│ source code use Help. txt
│ directory list. txt

└─iweather
│.classpath
│.project
│androidmanifest.xml
│ic_launcher-web.png
│proguard-project.txt
│project.properties

├─.settings
│org.eclipse.core.resources.prefs
│org.eclipse.jdt.core.prefs

├─assets
│└─fonts
│fangzhenglantingxianhe_gbk.ttf
│helveticaneueltpro-lt.ttf


├─gen
│└─edu
│└─swust
│└─iweather
│buildconfig.java
│r.java

├─libs
││locsdk_4.0.jar
││wae-for-debug.jar
││
│└─armeabi
│liblocsdk4.so

├─res
│├─drawable
││city_pressed_effect.xml
││title_bar_image_pressed_effect.xml
││
│├─drawable-hdpi
││bg_cloudy_day.jpg
││bg_cloudy_night.jpg
││bg_fine_day.jpg
││bg_fine_night.jpg
││bg_fog.jpg
││bg_haze.jpg
││bg_na.jpg
││bg_overcast.jpg
││bg_rain.jpg
││bg_sand_storm.jpg
││bg_snow.jpg
││bg_thunder_storm.jpg
││city_bg_pressed.9.png
││drag_view_handle.png
││icon.png
││icon_search.png
││ic_launcher.png
││locate_indicator.png
││search_input_bg.9.png
││select_city_bg_cover.9.png
││select_city_bg_default.jpg
││temperature_small_img.png
││title_bar_about.png
││title_bar_back.png
││title_bar_bg.9.png
││title_bar_refresh.png
││title_bar_shared.png
││today_weather_extra_arrow.png
││trend_bg_line.png
││weather_forcast_bg.9.png
││weather_forecast_icon.png
││weather_icon_cloudy.png
││weather_icon_fine.png
││weather_icon_fog.png
││weather_icon_hail.png
││weather_icon_overcast.png
││weather_icon_rain_big.png
││weather_icon_rain_middle.png
││weather_icon_rain_small.png
││weather_icon_rain_snow.png
││weather_icon_rain_storm.png
││weather_icon_sand_storm.png
││weather_icon_sleet.png
││weather_icon_snow_big.png
││weather_icon_snow_middle.png
││weather_icon_snow_small.png
││weather_icon_snow_storm.png
││weather_icon_thunder_storm.png
││weather_img_cloudy_day.png
││weather_img_cloudy_night.png
││weather_img_fine_day.png
││weather_img_fine_night.png
││weather_img_fog.png
││weather_img_hail.png
││weather_img_overcast.png
││weather_img_rain_big.png
││weather_img_rain_middle.png
││weather_img_rain_small.png
││weather_img_rain_snow.png
││weather_img_rain_storm.png
││weather_img_sand_storm.png
││weather_img_sleet.png
││weather_img_snow_big.png
││weather_img_snow_middle.png
││weather_img_snow_small.png
││weather_img_snow_storm.png
││weather_img_thunder_storm.png
││welcome_bg.jpg
││welcome_icon.png
││wind_samll_img.png
││
│├─drawable-ldpi
││icon.png
││
│├─drawable-mdpi
││icon.png
││ic_launcher.png
││
│├─drawable-xhdpi
││icon.png
││ic_launcher.png
││
│├─drawable-xxhdpi
││icon.png
││
│├─layout
││city_item.xml
││select_city.xml
││weather.xml
││weather_dialog.xml
││weather_forecast_item.xml
││welcome.xml
││
│└─values
│colors.xml
│dimens.xml
│strings.xml
│styles.xml

└─src
└─edu
└─swust
└─iweather
│selectcity.java
│weather.java
│welcome.java

├─util
│utils.java

└─web
Sinaweather.java
Updateweather.java

How to use the Baidu API interface in Android programs:

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.