- Clone this repo
- Add a resource file with your Flickr API key here
app/src/main/res/values/flickr.xml
:
<resources>
<string name="api_key"><!-- YOUR API KEY HERE --></string>
</resources>
- Open the project in Android Studio and run emulator from there OR use
gradlew
;
This repository contains limited functionality due to the time constraints for this task of ~4 hours. Here's a few improvements that should be done if given more time:
- Show network status / disable search field if network connection is lost.
- Separate concerns of the FlickrApi class. Right now, this class contains both API integration, threading and some functionality that is related to UX (debouncing). This should be separated.
- Use JAX to retrieve Flickr response instead of manual object mapping to
FlickrImage[]
. - Implement fullscreen image loading on thumbnail click (stub code is there).
- Implement tests.