This is a sample News Reader app that is supposed to display news list and the details. The first page displays news list, when one of the items is clicked, it is supposed to show the detail of the selected news. Unfortunately, the app is full of bugs and it crashes as soon as it is launched. Also, the code is not properly written and there are no unit tests. Can you help to fix all the problems?
This project requires the following
- Android Studio 2.1
- Android SDK 23 or above.
- Android SDK build tools 23.0.3 or above.
The screenshot below shows how the app looks like when it is done.
All the data is coming from the web endpoint. The response contains a list of news items as well as URLs to the pictures associated with each story.
Can you help fix all bugs so that it can display news list properly?
Can you help fix all bugs so that the app can show news detail properly? Also, clicking on "Full Story" button, it should open a browser and display full story in the browser.
Can you help to write unit tests for MediaEntity and NewsEntity?
-
The main logic is written in MainActivity, which is not a very clean way to construct an app. Can you help to improve it?
-
The way of fetching and parsing JSON data is not very nice. For example, if one of the name/value is missing, it can cause the app to crash.
-
The layout is only suitable for phones. Can you create an immersive tablet experience?
Can you help to make it better?
- It is possible that some of the stories do not have images.
- It is possible that the link to the full story might not work as it is controlled by New York Times.