Skip to content
This repository has been archived by the owner on Dec 21, 2017. It is now read-only.
/ wmappy Public archive

Do you ever wonder how list of all countries and cities looks like? Or maybe you wish wikipedia was only for such purpose? I have something for you, weirdo

License

Notifications You must be signed in to change notification settings

goldenpears/wmappy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wmappy

Do you ever wonder how list of all countries and cities looks like? Or maybe you wish wikipedia was only for such purpose?
I have something for you, weirdo

created for educational purpose

how to start?

  • git clone https://github.com/goldenpears/wmappy.git
  • import wmappy/wmappy folder via Android Studio (yes, second one)
  • run on the emulator or your device in the debug mode

or download .apk from latest release

or get it at PlayStore and become Alpha tester!

this is how we do it

  • Download a list of countries and cities from there
  • Parse that list into a local database (for now it parses and shows straight into recycle view, right after request via HTTP)
  • Create a country selector (dropdown or picker) which is populated from the local database.
  • Show a list of cities of the selected country.
  • Upon selecting a city from the list, fetch info about it and display it on a separate screen. For fetching city info use Wikipedia search service

any third-party libraries and frameworks?

Picasso - for load image of City at WikiActivity.

Why: unfortunately, at native methods, it would be much junky, so we just use single line of code for single and simple purpose for keep things clean and readable.

screenshots

screenshots splash screen ⭐️ list of countries ⭐️ dialog with cities ⭐️ info about city and photo if exist ⭐️

formally it is

Example of implementing:

  • parsing JSON via HTTP
  • showing result as recycle view
  • displaying dialog using ArrayList
  • and explicit intent to Activity with, again, parsed JSON
  • load image if exist, at WikiActivity via Picasso

About

Do you ever wonder how list of all countries and cities looks like? Or maybe you wish wikipedia was only for such purpose? I have something for you, weirdo

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages