Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set value with Java? #61

Open
kaanf opened this issue Apr 1, 2021 · 8 comments
Open

How to set value with Java? #61

kaanf opened this issue Apr 1, 2021 · 8 comments

Comments

@kaanf
Copy link

kaanf commented Apr 1, 2021

Hey, I'm trying to read SMS pin automatically. But I didn't find setValue or etc in Java. How can I set a value?

@ChaosLeung
Copy link
Owner

PinView extends EditText, so, you can use setText to set the pin.

@kaanf
Copy link
Author

kaanf commented Apr 1, 2021

PinView test = findViewById(R.id.test);
test.setText("150319");

I tried this but I am getting an error.

@ChaosLeung
Copy link
Owner

Can you provide the error message or the layout code?

@Zulqurnain
Copy link

@ChaosLeung setText() Not Working on Latest Version !!

@bawaKaliMrAbbasi
Copy link

setText not working

@bawaKaliMrAbbasi
Copy link

bawaKaliMrAbbasi commented Jan 2, 2022

I solved this by adding:
implementation platform('com.google.firebase:firebase-bom:29.0.3')
implementation 'com.google.firebase:firebase-auth'
instead of :
implementation 'com.google.firebase:firebase-auth:X.Y.Z(latest version)'

If you are facing this problem in java+firebasePhoneAuth.

Do this, I hope it works.

@bawaKaliMrAbbasi
Copy link

I solved this by adding: implementation platform('com.google.firebase:firebase-bom:29.0.3') implementation 'com.google.firebase:firebase-auth' instead of : implementation 'com.google.firebase:firebase-auth:X.Y.Z(latest version)'

If you are facing this problem in java+firebasePhoneAuth.

Do this, I hope it works.

@Zulqurnain , @kaanf

1 similar comment
@bawaKaliMrAbbasi
Copy link

I solved this by adding: implementation platform('com.google.firebase:firebase-bom:29.0.3') implementation 'com.google.firebase:firebase-auth' instead of : implementation 'com.google.firebase:firebase-auth:X.Y.Z(latest version)'

If you are facing this problem in java+firebasePhoneAuth.

Do this, I hope it works.

@Zulqurnain , @kaanf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants