Can I retrieve this two in one call?
I am planning to compare their "Amount" in the graph inside android studio
How can such scenario be implemented in a social app Android java. I have built my app with Firebase RTDB and I am retrieving the data into a Recycleview using collection.shufflelist too so that I get random data displayed.
How to add another condition to collection.shufflelist(); that will make the latest post show at the top in that same random order but post that are created within the last 24 hours should be randomly placed at the top.
I have tried to use the logic of
reference.child().orderChildBy(timestap).startAt(system.currentTime....).StopAt(1356890000...) but I only saved date into my database in Simple date format, YY-MM-DD.
So I cannot add another node to save timestamps because app already has installs in several users phone changing database structure or adding new nodes/child may affect the app.
My question now on this situation how possible is it to set my random retrieved data to have the latest at the top?
I have built an android application using firebase database. I have a recyclerView in which i saw some objects. When i click on one of the options i want to get the unique id so later i can change some values.
If it where a user i could get the id by FirebaseAuth.getInstance().getCurrentUser().getUid()
I want something like that but i cannot find it.
For example. I have those two Notifications Objects in the database.
Here when i click on one i need to get the key. I have not added the objects on a list so i can use list.get(position).getId(). Is it possible to get it from getAdapterPosition()?
I'm working on my project and making an android app using Cognito for user management.
I tried to use it as user database so I made some custom fields like age and picture_url. But I cannot find a way to change the value of a custom field. I found the code to delete the value of field but couldn't find the one to register to an existing user.
Is it impossible to change the value of a custom field from android or lambda in python so that I need to switch to RDS to store user information?
The Python SDK method which should work for this is CognitoIdentityProvider.Client.update_user_attributes (Python SDK AWS Docs)
For the attribute name be sure to prefix it with custom: (custom:age and custom:picture_url for the attributes you mentioned). The custom prefix is mentioned here: AWS Docs: Configuring User Pool Attributes
If you are using Client based access be sure the Client has access to modify the custom attributes. I don't believe clients which exist prior to the custom attribute being created automatically have access to modify the newly created attribute.
I'm developping a store app and i encounter a problem regarding the real time refresh .
Let me explain it better , This app is a clothes store and everytime my friend adds a new collection i have to update the app.
But the thing is that every image of the products (let's say , jeans, t shirt, etc..) are stored in drawable folder of the app , and at last the aplication itself grow huge .
This issue cause several problem , the first one is that every image are stored Inside drawable folder , the second one is that everytime my friend adds a new collection i have to updade the application (and add the new collecion to drawable folder) .
I know this ain't the best way to store data so i would like to set up a database with SQL , so my friend could add it's collection throught it and my app will grab it in realtime so i do not need to store data inside the app and i don't need to update it every week
I would like to know if it is possible and if so, how am i supposed to do ?
Let's say my friend has 3 new Jeans to add in it's collection, i create a RecyclerView w/ Cardview to Display the original Jeans Collection, Now how am i supposed to do to make it grabbing from the Database and adding to the RecycleView the 3 new Jean of the collection?
Thanks
PS :I'm sorry for my english
Instead of setting up your own server, you can use Firebase Database to store your data.
Basically, you will need to store the description of each item as well as its image (so that you won't have to update your app every time an image is added / modified).
For storing the images you can use Firebase Cloud Storage.
The documentation is really great, it should be able to guide you from here.
Use Firebase. Connect your app to the Realtime Database.
Get the SHA-1 fingerprint of your app by running signingReport from the Gradle Projects pane in AS
Go to the Firebase console and create a new project
Click "Link to your Android app"
This is in the top of the page, with the Android logo in a circle.
Type in the package of your app and paste the SHA-1.
Click next
Go back to Android Studio and go to Menu Bar>tools>Firebase
In the pane that shows up, expand the "Realtime Database" thingy
Click the button under the Realtime Database item
Click "Add Realtime Database to your app"
MAKE SURE YOU ARE SIGNED IN WITH THE ACCOUNT THAT HAS THE FIREBASE PROJECT IN ANDROID STUDIO
Click "Set up dependencies" now you're good to go with Firebase Realtime Database!