An open API service indexing awesome lists of open source software.

https://github.com/armdev19/earth-photos

Erth Photos connects to NASA server and displays photos by day
https://github.com/armdev19/earth-photos

gson interpreter java okhttp3 retrofit2 rxjava2

Last synced: about 1 year ago
JSON representation

Erth Photos connects to NASA server and displays photos by day

Awesome Lists containing this project

README

          

# Earth Photos Example

Earth Photos - This application uses NASA's API to display photos of the planet Earth. The user can select both the day of the photo and the time of the photo. The Earth of Photos allows the user to send favorite photos to friends using any social networks. And also allows you to set your favorite photos as wallpaper on your device.

You can use this application to study the architecture and third-party libraries used in this project.

## Project DEMO

![Alt Text](https://user-images.githubusercontent.com/55914555/65821768-34eeca80-e24b-11e9-86a0-c4c9242c5940.gif)

minSdkVersion - 21 (Lollipop) /
targetSdkVersion - 29 (Android 10)

Architecture: Observer

To use the program you need to get a key on the NASA website, this key has a limit of 1000 requests per day.
Link to NASA website https://api.nasa.gov/

### Used libraries

* RxJava 2
* Retrofit 2
* Okhttp 3
* Subsampling scale image view
* Universal image loader
* Kenburnsview

![1 1](https://user-images.githubusercontent.com/55914555/65821493-4df57c80-e247-11e9-8996-562ab0b72af5.png)
![1 2](https://user-images.githubusercontent.com/55914555/65821494-4df57c80-e247-11e9-8554-efff18013c21.png)
![1 3](https://user-images.githubusercontent.com/55914555/65821495-4e8e1300-e247-11e9-938b-32acbd571b40.png)
![1 4](https://user-images.githubusercontent.com/55914555/65821496-4e8e1300-e247-11e9-959f-9ea95fcb563e.png)

-------------------------------------------------------------------------------------------------

implementation 'com.squareup.retrofit2:retrofit:2.4.0' - Retrofit REST client

implementation 'com.squareup.okhttp3:okhttp:4.0.0' - okHttp HTTP client

implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0' - RxJava adapter for Retrofit

implementation 'com.squareup.okhttp3:logging-interceptor:4.0.0' - Logger for okHttp

implementation 'com.squareup.retrofit2:converter-gson:2.4.0' - JSON converter for GSON

implementation 'com.google.code.gson:gson:2.8.5' - GSON - parser library to JSON

implementation 'io.reactivex.rxjava2:rxjava:2.2.8' - RxJava is a Reactive Programming library

implementation 'io.reactivex.rxjava2:rxandroid:2.0.1' - RxJava for Android

implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.10.0' - Scalable ImageView

implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5' - Image loader

implementation 'com.flaviofaria:kenburnsview:1.0.7' - ImageView Animated Effect