项目作者: iammelvink

项目描述 :
Repository for my Whats The Weather app. Find out how to build a simple Whats The Weather app. Author Melvin Kisten tackles AsyncTask, JSONArray, InputStream, HttpURLConnection classes and APIs.
高级语言: Java
项目地址: git://github.com/iammelvink/whats-the-weather.git
创建时间: 2019-11-28T12:28:15Z
项目社区:https://github.com/iammelvink/whats-the-weather

开源协议:GNU General Public License v2.0

下载


Android App: Using Java

Repository for my Whats The Weather app

Whats The Weather

Find out how to build a simple Whats The Weather app. Author Melvin Kisten tackles AsyncTask, JSONArray, InputStream, HttpURLConnection classes and APIs.

Instructions

  1. Make sure you have these installed

  2. Clone this repository into your local machine using the terminal (mac) or Gitbash (PC)

    > git clone https://github.com/iammelvink/whats-the-weather.git

  3. Vist Open Weather Map and Sign Up or Sign In if you already have an account

  4. Copy your API key from Open Weather Map and paste at file :
    app\src\main\java\com\iammelvink\whatstheweather\MainActivity.java at the line where you see this YOUR_API_KEY:

    1. task.execute("http://api.openweathermap.org/data/2.5/weather?q=" + searchCity + "&APPID=YOUR_API_KEY").get();
  5. Run Android Studio and choose Open an existing Android Sudio project
  6. Press play button to run the app

More Stuff

Check out some of my other stuff on iammelvink. Follow me on Twitter and Instagram, or check out my YouTube channel.