Relative Content

Tag Archive for javaandroidfirebase-realtime-database

Whats the problem with my function uploadDataDB( ), My user data is not uploading in theDB

private DatabaseReference reference = FirebaseDatabase.getInstance().getReference(); private void uploadDataDB() { reference = reference.child(“UserData”); final String unqKey = reference.push().getKey(); Calendar calendar = Calendar.getInstance(); @SuppressLint(“SimpleDateFormat”) SimpleDateFormat currDate = new SimpleDateFormat(“dd-MM-yy”); String date = currDate.format(calendar.getTime()); Calendar calforTime = Calendar.getInstance(); @SuppressLint(“SimpleDateFormat”) SimpleDateFormat currTime = new SimpleDateFormat(“hh-mm”); String time = currTime.format(calforTime.getTime()); UserData userData = new UserData(name, downloadUrl, date, time, unqKey, email, […]

Update a excisting Firebase field with new data

before update
I want update the value of Plavix 75mg:”50″. When user give a new value my code add a new value with a new ID instead of modifying the previous one. Here is the result.
after update
Please help me to fix this.
Here is my code.

a local service app that enables users to find people like electricians,plumbers etc

a local service app with worker and user registration and log in and where the user can view different categories of the services being offered an can pay, write reviews and rate the workers in android studio using java. The app should connect to firebase where there will be two databases, for the user and for the worker. there should be a categories button at the home page that when pressed will give a list of the names of the workers in that category and each name will be clicked to give additional information such as name, email address, phone number and a place for the users to rate stars and write reviews

com.google.firebase.database.DatabaseException: Found conflicting getters for name: isFocusable

Process: com.topurayhan.chatter, PID: 7960 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.topurayhan.chatter/com.topurayhan.chatter.CategoriesActivity}: com.google.firebase.database.DatabaseException: Found conflicting getters for name: isFocusable at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3449) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7656) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) Caused by: com.google.firebase.database.DatabaseException: Found conflicting getters for name: isFocusable at com.google.firebase.database.core.utilities.encoding.CustomClassMapper$BeanMapper.<init>(CustomClassMapper.java:478) at com.google.firebase.database.core.utilities.encoding.CustomClassMapper.loadOrCreateBeanMapperForClass(CustomClassMapper.java:330) […]