Comments (7)
Hi @Isabellle . India is a library default country so you are getting IN at first position. You can set your default country using app:defaultNameCode="BE"
. Find more documentation here.
from countrycodepickerproject.
Is it fixed?
from countrycodepickerproject.
That was fast! Yes it is working like a charm :)
from countrycodepickerproject.
Unfortunately I can't seem to be able to change de "defaultNameCode" programmatically.
I'm setting this but it doesn't change:
countryPicker.setDefaultCountryUsingNameCode("FR");
- Still India as first item
from countrycodepickerproject.
Oh. What is happening?
Which country is being set if you call countryPicker.resetToDefaultCountry();
right after countryPicker.setDefaultCountryUsingNameCode("FR");
?
from countrycodepickerproject.
I tried what you suggested and unfortunately it crashes.
ERR: stack=java.lang.StackOverflowError: stack size 8MB
at com.hbb20.CountryCodePicker.setSelectedCountry(CountryCodePicker.java:259)
at com.hbb20.CountryCodePicker.resetToDefaultCountry(CountryCodePicker.java:723)
at
from countrycodepickerproject.
My fault! It works now, sorry for not having read your documentation till the end.
Thanks so much for your assistance!
from countrycodepickerproject.
Related Issues (20)
- Version 2.7.3 creates errors on duplicate classes HOT 1
- setPhoneNumberValidityChangeListener method gives error even on entering last valid digit of a phone number
- United Arab Emirates is not as it is.
- Country preferance HOT 3
- country selection dialog search editText text size not changable
- No Jetpack Compose Support HOT 1
- NoSuchMethodError: No virtual method parseAndKeepRawInput HOT 1
- Country Code is not there in the list
- Country Code is not there in the list
- Country Code for Trinidad and tobago HOT 1
- CountryCodePicker not working for Android Studio Giraffe HOT 1
- How to use it with JETPACK COMPOSE HOT 1
- HintExampleNumber usage HOT 1
- Android SDK 34 has dialog background issue HOT 1
- Fast Scroller works wrongly after customizing CCP Dialog theme.
- just got an error after pasting the country code picker into the gradle
- I am getting an error just after pasting implementation 'com.hbb20:ccp:2.5.0' HOT 3
- country flag not showing
- android.content.res.Resources$NotFoundException - Unable to find resource ID #<address>
- Unable to add window -- token null is not valid; is your activity running?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from countrycodepickerproject.