firebaseui

Android - RecyclerView not working

风格不统一 提交于 2021-02-05 07:27:05
问题 I am trying to retrieve data from my Firebase database, but my screen is not showing anything. I don't see any errors so I don't know why nothing is happening. Can anyone spot any mistakes? I followed the FirebaseUI guide with some help from a stackoverflow member. The data should show the street and the user on the screen Fragment: public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.fragment_stopandmap,

Fireabse UI sign up without requesting user name

流过昼夜 提交于 2021-02-04 08:31:07
问题 Using Firebase UI for sign-in and sign-up, how do I remove the option for a user to sign-up with a first & last name? In other words, only their email and password are required. According to this github issue, the feature to do so has been implemented. Firebase provided Kotlin code for sign-in/sign-up: private fun createSignInIntent() { // Choose authentication providers val providers = arrayListOf( AuthUI.IdpConfig.EmailBuilder().build(), AuthUI.IdpConfig.GoogleBuilder().build()) // Create

Fireabse UI sign up without requesting user name

笑着哭i 提交于 2021-02-04 08:30:45
问题 Using Firebase UI for sign-in and sign-up, how do I remove the option for a user to sign-up with a first & last name? In other words, only their email and password are required. According to this github issue, the feature to do so has been implemented. Firebase provided Kotlin code for sign-in/sign-up: private fun createSignInIntent() { // Choose authentication providers val providers = arrayListOf( AuthUI.IdpConfig.EmailBuilder().build(), AuthUI.IdpConfig.GoogleBuilder().build()) // Create

Angular FirebaseUI Auth via Twitter, GitHub, Microsoft Not Working

。_饼干妹妹 提交于 2021-01-29 17:20:35
问题 I'm trying to setup Angular (v11) app with FirebaseUI auth via different providers, following steps provided here. The only one that works for me is Google. Others I'm trying all give various errors: Twitter: "Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings" GitHub: "Unable to process request due to missing initial state. This may happen if browser sessionStorage is inaccessible or accidentally cleared" Microsoft: "The

How to show progress dialog until the data loads in FirestoreRecyclerAdapter

一笑奈何 提交于 2021-01-29 17:10:50
问题 I am using FirestoreRecyclerAdapter to load the data from Firestore into RecyclerView . I would like to show progress dialog until the data loads completely. How do I do that? Thanks in advance. Here is my code so far. void loadPosts() { FirestoreRecyclerOptions<Post> options = new FirestoreRecyclerOptions.Builder<Post>() .setQuery(query, Post.class) .build(); adapter = new FirestoreRecyclerAdapter<Post, DataViewHolder>(options) { @Override protected void onBindViewHolder(@NonNull

FirebaseUI custom layout doesn't show

喜夏-厌秋 提交于 2021-01-29 06:33:45
问题 I have created a custom layout for authentication, but the layout is not shown and Email login screen is displayed instead val customLayout = AuthMethodPickerLayout.Builder(R.layout.custom_signinbasic) .setPhoneButtonId(R.id.buttonPhone) .setEmailButtonId(R.id.buttonEmail) .build() startActivityForResult( AuthUI.getInstance().createSignInIntentBuilder() .setAuthMethodPickerLayout(customLayout) .build(), Signin_Request_Code) Layout <androidx.constraintlayout.widget.ConstraintLayout xmlns

OnClickListener is not working inside my adapter class

空扰寡人 提交于 2021-01-28 19:35:40
问题 I looked at many solutions posted online but they couldn't solve my problem. Probably the adapter position is returning -1 but why? java.lang.ArrayIndexOutOfBoundsException: length=10; index=-1 at java.util.ArrayList.get(ArrayList.java:439) at com.firebase.ui.common.BaseObservableSnapshotArray.getSnapshot(BaseObservableSnapshotArray.java:70) at com.example.twitterclone.adapters.MyAdapter$TweetViewHolder.<init>(MyAdapter.kt:36) at com.example.twitterclone.adapters.MyAdapter.onCreateViewHolder

Android Proguard & FirebaseListAdapter Are conflicting

半城伤御伤魂 提交于 2021-01-28 08:45:16
问题 good evening, I have spent a couple of hours trying to understand whats going on. This is the situation: Made an app, works fine in debug mode, but release mode gives me errors on the FirebaseListAdapter: DatabaseReference ref = FirebaseDatabase.getInstance().getReference("a/"); mAdapter = new FirebaseListAdapter<Acties>(activity, Acties.class, R.layout.list, ref) { @Override public void populateView(View v, Acties model, int position) { ((TextView)v.findViewById(R.id.textView1)).setText

How to implement firebase recycler using TextWatcher?

喜欢而已 提交于 2021-01-27 21:37:47
问题 I have implemented Firebase recycler in my app. Everything works fine while using text watcher, but recycler view is not updating in onTextChanged with the keyboard up, and gets updated as soon as i press the keyboard to go down. This is my code: private TextWatcher textWatcher = new TextWatcher() { public void afterTextChanged(Editable s) { } public void beforeTextChanged(CharSequence s, int start, int count, int after) { } public void onTextChanged(CharSequence s, int start, int before, int

Cant use getRef()?

时光总嘲笑我的痴心妄想 提交于 2021-01-27 18:02:48
问题 Can anyone explain why this is saying I can not use getRef to get the position that is being clicked? From everything I have looked up, this should work and for some reason it is not. public class DeleteChoiceListFragment extends Fragment { DatabaseReference mRootRef = FirebaseDatabase.getInstance().getReference(); DatabaseReference mRestReference = mRootRef.child("restaurants"); List<String> listofrest = new ArrayList<String>(); ListView restaurantListView; ListAdapter restaurantListAdapter;