{"id":50992234,"url":"https://github.com/thebinarysolution/countrypickerandroid","last_synced_at":"2026-06-20T04:32:30.183Z","repository":{"id":135060218,"uuid":"116804420","full_name":"thebinarysolution/countrypickerandroid","owner":"thebinarysolution","description":"Country Code Picker for Android in Kotlin","archived":false,"fork":false,"pushed_at":"2018-01-22T11:24:49.000Z","size":407,"stargazers_count":15,"open_issues_count":0,"forks_count":5,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-16T08:04:00.847Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thebinarysolution.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-01-09T10:57:05.000Z","updated_at":"2026-04-30T20:55:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"292bede7-7d2a-4d56-96d2-b4f7886b3046","html_url":"https://github.com/thebinarysolution/countrypickerandroid","commit_stats":null,"previous_names":["thebinarysolution/countrypickerandroid"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/thebinarysolution/countrypickerandroid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebinarysolution%2Fcountrypickerandroid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebinarysolution%2Fcountrypickerandroid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebinarysolution%2Fcountrypickerandroid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebinarysolution%2Fcountrypickerandroid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thebinarysolution","download_url":"https://codeload.github.com/thebinarysolution/countrypickerandroid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebinarysolution%2Fcountrypickerandroid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34557551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-20T04:32:28.731Z","updated_at":"2026-06-20T04:32:30.176Z","avatar_url":"https://github.com/thebinarysolution.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Country Picker Android\n\nCountry Code Picker for Android in Kotlin language. It will show a [bottomSheet](https://material.io/guidelines/components/bottom-sheets.html)\ndialog with list of countries with their names and flags, once you selected the country the \n[callback](https://github.com/debutdeveloper/countrypickerandroid/blob/master/countrycodepicker/src/main/java/com/debut/countrycodepicker/listeners/CountryCallBack.kt)\nwill provide you the [country](https://github.com/debutdeveloper/countrypickerandroid/blob/master/countrycodepicker/src/main/java/com/debut/countrycodepicker/data/Country.kt) object, which includes the Country name, phoneCode,  flagBitmap\n\n# Getting Started\n\nAdd a gradle dependency\n\n      # Root Level Gradle Dependency\n      allprojects {\n        repositories { \n            jcenter()\n            maven { url \"https://jitpack.io\" }\n        }\n      }\n      \n      # Module Level Gradle Dependency\n      dependencies {\n           compile \"com.github.debutdeveloper:countrypickerandroid:dcbbda7fda\"\n           compile \"com.android.support:design:26.1.0\"\n      }\n      \n   \n    \n    \n\n# How To Use in Kotlin\n\n\n```\nCountryPicker.show(supportFragmentManager, object : CountryCallBack {\n        override fun onCountrySelected(country: Country) {\n             Snackbar.make(fab, \"Country : ${country.name} and Country Code : ${country.countryCode}\",\n             Snackbar.LENGTH_LONG).show()\n                 }\n              })\n```\n\n# How To Use in Java\n\nFirst add kotlin support in your project.\n\n[Add Kotlin support in Android Project](https://kotlinlang.org/docs/tutorials/kotlin-android.html)\n\n```\nCountryPicker.INSTANCE.show(getActivity().getSupportFragmentManager(), new CountryCallBack() {\n                @Override\n                public void onCountrySelected(Country country) {\n                    String messsage = \"Country = \" + country.component1() + \n                    \" code = \" + country.component2();\n                    Utils.getInstance().showSnackbar(view, messsage);\n                }\n            });\n            \n```\n\n\u003ca href=\"https://imgflip.com/gif/22fadq\"\u003e\u003cimg src=\"https://i.imgflip.com/22fadq.gif\" title=\"made at imgflip.com\"/\u003e\u003c/a\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthebinarysolution%2Fcountrypickerandroid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthebinarysolution%2Fcountrypickerandroid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthebinarysolution%2Fcountrypickerandroid/lists"}