build a app

1. Hook your app up to the OpenWeatherMap API

This repository provides you with some starter code that displays dummy forecast data in a RecyclerView. Your first task for this assignment is to write an AsyncTask to fetch forecast data from the OpenWeatherMap API and to display that data in the RecyclerView instead of the dummy data. You can find more info about the OpenWeatherMap API here: [url removed, login to view] Here are some steps you can follow to get everything working for this part of the assignment:

Sign up for an OpenWeatherMap API key here: [url removed, login to view] You'll need this to make calls to the API. If signing up for an API key is a problem for you, please contact me.

Write a utility method to construct a URL to query OpenWeatherMap's 5-day forecast API for a specified city name. You can read more about this API here: [url removed, login to view] Make sure you include your API key as a query string parameter in your URL.

Write a subclass of AsyncTask that uses a URL from the method you just wrote to get forecast data from OpenWeatherMap. Your AsyncTask should do the following things:

Display a ProgressBar in onPreExecute().

Fetch forecast data for a specified city as a JSON string in doInBackground(). For this assignment, you can hard code the name of a city for which to fetch data in your main activity class (e.g. "Corvallis, OR").

In onPostExecute():

Hide the ProgressBar.

If for some reason you were unable to fetch forecast data in doInBackground(), display an error message.

If you successfully fetched forecast data, pass it into the ForecastAdapter using its updateForecastData() method to display the data in the RecyclerView.

Call your AsyncTask from your main activity class's onCreate() to make sure data is loaded when the app starts.

Write a utility method to parse the JSON data returned by OpenWeatherMap into an ArrayList of String objects, where each string in the list represents a forecast for one date/time entry in the JSON data. Specifically, each string should contain the following fields from one entry from list in the JSON data:

dt_txt - the date and time

[url removed, login to view] - the temperature (make sure you get the units right)

[url removed, login to view] - a general description of the weather

Don't worry too much about formatting your string super nicely (e.g. don't worry about converting UTC time into local time for now). For example, one of your weather strings might look like this:

2017-04-29 00:00:00 - Clear - 54F

Plug this parsing method into your AsyncTask to parse the JSON data before you pass it into the adapter.

2. Use an Intent to start a new activity

Once you have your app hooked up to the OpenWeatherMap API, implement functionality that allows the user to click on any item in the forecast list to view a "detailed" version of that forecast. Here are some steps you can follow for this part of the assignment:

Implement a new activity to represent the "detailed" view of the forecast. To do this, you should write:

A new layout XML file for this activity. At a minimum, this layout should contain a TextView you can use to display the weather string.

A new subclass of AppCompatActivity. At a minimum, this class should implement an onCreate() method that does the following:

Uses getIntent() to get the Intent that initiated the activity.

If the Intent was not null, grabs the forecast string extra from the Intent and displays it in the activity's TextView.

Add an entry in [url removed, login to view] for the new activity.

The app is currently set up to handle clicks on individual items in the forecast list by displaying a toast with the corresponding detailed forecast. Change this functionality so that a new explicit Intent is created to start the new activity you just implemented. When a forecast item is clicked, pass the the forecast string as an argument to the click handler and then into the Intent as an extra, and use the Intent to start the activity.

Compétences : Android, Mobile App Development

en voir plus : how to create an app for iphone, appmakr, how to create an app without coding, app builder, how to create a game app, how to create an app for free and make money, best app maker, how to create an app for android, build app radio, need build app iphone, build app psd, build app store website, someone build app, need someone build app, build app mobile phone

Concernant l'employeur :
( 3 commentaires ) Corvallis, United States

Nº du projet : #16277825

Décerné à:

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 3 jours
(63 Commentaires)

12 freelance font une offre moyenne de $179 pour ce travail


Hello. how are you? i have full experience with android app development. i can build your app in a short time , i am sure i can do that wonderfully. give me chance.. Thanks.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(226 Commentaires)

Dear customer. I am interested on your job. I have developed many Android apps for several years. I can create your backend side(admin panel and rest api) too. Of course I am sure I can complete your job PERFECTLY a Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(30 Commentaires)

I am very interesting in your job and I can develop your iOS, Android app within short timeline if you hire me. As a professional iOS(Objective-C, Swift 2, 3, 4), Android app developer with 7 years experiences, I ha Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(24 Commentaires)

Hi Greetings! I can develop the android app with OpenWeatherMap API. I can develop excatly as you have prescribed in the description. I can develop the app comfortably. I am glad to share that I have 5 years of Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(24 Commentaires)

Hello, We are a website design and development company. Our expertise include: - Open source Platform Development - Ecommerce Development - Custom Web application Development We can help you for sure to co Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(1 Évaluation)

GREETING ! On behalf of CS Infotech having experience of 7+ years. We have a team of 40+ creative people and we cater the market of the Web & Mobile app design and development. We got Android developer, who speciali Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 30 jours
(9 Commentaires)

**CHEAP APP DEVELOPMENT** I am a freelance app developer I specialize in android app development I am Java and Android certified. I have been doing software development for the past 5 years

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(0 Commentaires)

Hello Sir, You would have seen many freelancers applied in this project but the best one for this project should be the person who has previous experiences for the relevant skills. We have both experiences and skill Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 5 jours
(0 Commentaires)

Hi, I`m android App Developer and having experience of less then 1 year to develop Android. I have good skills of working with web services (REST, SOAP) and also having good skill of parsing JSON using Retrofti, VOll Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 10 jours
(0 Commentaires)

hey,Greeting from zycotech. We are with extensive experience and have skilled experts 15 Professionals. We dedicate Team for any project as per the size of the [url removed, login to view] are expertise in Mobile apps , Android , iPho Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(0 Commentaires)

A proposal has not yet been provided

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 10 jours
(0 Commentaires)