Android - Earthquake(地震顯示器) 項目 詳解

來源:互聯網
上載者:User

Earthquake(地震顯示器) 項目 詳解

 

 

環境: Android Studio 0.5.2, Gradle 1.11, kindle fire

時間: 2014-3-24

 

Earthquake項目, 主要是讀取USGS(United States Geological Survey, 美國地址勘探局)提供的feeds(訂閱源), 進行顯示資料;

需要讀取互連網的資料, 進行格式解析(parse), 資料類型是atom類型, 類似XML.

訂閱源地址: http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_day.atom

格式:

 

2014-03-24T07:56:39ZU.S. Geological Surveyhttp://earthquake.usgs.gov/http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_day.atomhttp://earthquake.usgs.gov/favicon.icourn:earthquake-usgs-gov:ci:154795692014-03-24T07:48:34.609ZDYFI? - I

 

Time
2014-03-24 07:38:10 UTC
2014-03-23 23:38:10 -08:00 at epicenter
Location
32.222°N 115.274°W
Depth
14.10 km (8.76 mi)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.