Category : firebase-realtime-database

I used a DatePickerDialog to get the selected date from user by clicking on a TextView. But the thing is how do I send that value(date) from the TextView to Firebase? Can the date be converted into string? TextView startDate; DatePickerDialog.OnDateSetListener startDateDateSetListener; startDate.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Calendar cal = Calendar.getInstance(); ..

Read more

Situation: I am working on a group chat app using Flutter and Firebase Real-Time Data base. I am aiming for a scalable group messaging system, so I have group messages sent to a single location according to their group id. In the database the location looks like "firebaseio.com/app/groupchats/groupid/messages". For the messages preview page new messages ..

Read more

I want to open a new Fragment when an item is clicked from the FireBaseRecyclerAdapter. PersonAdapter.kt: override fun onBindViewHolder( holder: personsViewholder, position: Int, model: Exercise ) { holder.title.text = model.title holder.description.text = model.description } At the moment I can fill the recyclerview with data but how can I pass on this data to a new ..

Read more

I am trying to write a class for the FirebaseDatabase that makes my activities code shorter. I have in my Database node "events" and I want to make a method that returns all the events in the node. public HashMap getEvents() { mDatabase.child("events").addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChange(@NonNull DataSnapshot dataSnapshot) { getValue = dataSnapshot.getValue(); ..

Read more

I am new at Android and I am making an app that displays the user’s uploaded images(encrypted). I got the picture from the gallery to uri and converted it into a bitmap. We also encrypted the photos in Byte format with AES256 and uploaded them to the Realtime Database by user. enter image description here ..

Read more