Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

astronomy picture

an android app, shows astronomy picture of the day, built with :heart: using flutter.

documentation ::

  1. this android app will fetch astronomy picture of the day aka apod, from an express app, which is running on a machine in local network (in my case).
  2. you might be interested in running that express app on cloud or on some remote server, then make necessary changes.
  3. you can find express app in this repo.
  4. and you will also require to store all apods in local database.
  5. in my case, i used a postgresql database.
  6. so, create a sql database and a table like the following.
  nasa_apod=# d apod_data
                       table "public.apod_data"
   column      |         type          | collation | nullable | default 
-----------------+-----------------------+-----------+----------+---------
date            | character(10)         |           | not null | 
copyright       | text                  |           |          | 
explanation     | text                  |           |          | 
hdurl           | text                  |           |          | 
media_type      | character varying(25) |           |          | 
service_version | character varying(10) |           |          | 
title           | text                  |           |          | 
url             | text                  |           |          | 

  1. then go to this repo, and keep downloading all apods, upto current date.
  2. don’t forget to run apod_updater.py daily, so that you keep getting current day’s apod from nasa.
  3. this app lets you download apod, if and only if it’s an image.
  4. you might even consider to use a certain apod as you wallpaper, which is also feasible from that app.
  5. this app targets api level 28.
  6. of course it uses material design.
  7. this app also displays test ads using google’s mobile ad sdk.
  8. you might consider using this app’s code as an example for using ads in your app, so that you can monitize your app.
  9. this app also caches previously queried apod in local sqlite database using room consistency library.
  10. so, when previously requested data is available in local database, it will simply use that otherwise it will perform a query to that express app, which you may find here.

screenshots ::

astronomy picture
astronomy picture
screenshot_20190317-122734
astronomy picture

screenshot_20190317-122743

screenshot_20190317-122752

screenshot_20190317-122804

screen recoring ::

you may like to check this screen recording out.

download ::

you can download release version of this app here or just compile it yourself.
don’t forget to create local database and populate it with all apods till date, using scripts from this repo.
make sure you’ve started the express app properly in local machine and set correct ipaddress and portnumber. otherwise you might see some unexpected results.
for initial testing i’d suggest you to run express app aka apod_server on a machine in local network. and later on you might think of shifting to cloud solutions.


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Top