Soru & Cevap

FireBase - RealTime Database Veri Güncelleme Sorunu.. ...

30.05.2020 - 03:06

Android Studio ile basit bir uygulama yapmaya çalışıyorum.. Ama bir yerde takıldım ve işin içinden çıkamıyorum.. Sorunum şu . . : Firebase Database den gelen puanın üstüne, son puanı alıp ekleyecek ve eski puanın üstüne yazacak.. Daha basit bir anlatımla..: EskiPuan = 50,, YeniPuan = 75.. GuncelPuan = EskiPuan+YeniPuan .. EskiPuan ı 125 olarak güncelleyecek.. 


public void PuanGuncelleme()
        mAuth = FirebaseAuth.getInstance();
        String user_id = mAuth.getCurrentUser().getUid(); 
        mDatabase = FirebaseDatabase.getInstance().getReference().child("Kullanıcılar").child(user_id); 
        mDatabase.addValueEventListener(new ValueEventListener() {
            public void onDataChange(@NonNull DataSnapshot dataSnapshot) {

                user_puan = dataSnapshot.child("puan").getValue().toString(); 
                int USERPUAN = Integer.parseInt(user_puan);
                GenelToplam = String.valueOf(USERPUAN + skor);
                Map userUpdateMap = new HashMap();
                userUpdateMap.put("puan", GenelToplam);

            public void onCancelled(@NonNull DatabaseError databaseError) {


Bu şekilde bir kod bloğum var ama istediğim gibi çalışmıyor .. OnDataChange referansının in içinde olduğu içinde  sonsuz döngüye girip ben emilatörü durdurana kadar sürekli kayıt yapıyor..  Bu durumu nasıl düzeltebilirim acaba?

535 Görüntülenme

3 Cevap

Sitedeki sorulara cevap verebilmek için giriş yapın ya da üye olun.

Profile picture for user piyaone
03.05.2022 - 04:16

พบกับpg slotโปรโมชั่นสุดพิเศษจาก AUTOpgslot.NET ของเรา กับโปรโมชั่นสมัครสมาชิกใหม่ครั้งแรกรับโบนัสฟรี 50% แถมยังมีโปรโมชั่นเด็ดๆ กิจกรรมโดนๆให้ร่วมสนุกกันอยู่ตลอด ถ้าหากอยากเล่นสล็อตแล้วได้เงินจริง คุณมาถูกที่แล้ว !!

Profile picture for user hanaawork1
04.04.2022 - 04:08

Kingdom Services Company..
Kingdom Services Company .. maintenance of air conditioners in proportion to their type and commitment to providing the necessary spare parts and repairing all problems that exist in the fastest time and with the highest possible quality, in addition to the presence of trained technicians and experience commensurate with those specific tasks that require professionalism.
شركة صيانة مكيفات فوجي بالرياض

We need the Kingdom Services Company .. maintenance of air conditioners so that the distinctive maintenance of all air conditioners that are located in homes, palaces, companies and others is carried out, and through this service, Freon charges the devices, repairs various faults and performs periodic cleaning.
شركة صيانة مكيفات بالرياض
There are many advantages that the Kingdom Services Company possesses.. Maintenance of air conditioners and we will explain them through the following points:
• It can deal with all types of window, split and desert air conditioning.
• You can clean air conditioners with safe materials and appropriate methods to protect them from damage.
• Get rid of things stuck in the air-conditioner, which cause a reduction in the efficiency of its pipes.
• There are technicians and workers trained and specialized in this type of maintenance and cleaning, and they can check for Freon leaks and other tasks.
Central air conditioning maintenance company in Riyadh
Many people need the Kingdom Services Company... to maintain central air conditioners in major companies, palaces, homes and other places where this type is installed. Therefore, it is a leading company in this field without competitors because of the advanced method of cleaning, maintaining and maintaining it.
Concealed air conditioner maintenance company in Riyadh
Special and professional workers are brought in to deal with hidden air conditioners, as they contain many elements that differ from the normal type. Therefore, the Kingdom Services Company is distinguished by the maintenance of air conditioners in the presence of the professional team to deal with these types of air conditioners.
The latest equipment used by the Cassette Air Conditioning Maintenance Company in Riyadh
Equipment is an important part in carrying out maintenance in an appropriate manner for all types of air conditioners. Therefore, the company that provides all the equipment that suits these tasks, in addition to the original spare parts for different types, must be chosen so that the task is completed successfully and as quickly as possible.
The importance of the need for air conditioning cleaning and maintenance
Attention should be paid to cleaning and maintaining air conditioners at the specified times, by doing the required maintenance and constantly cleaning all air vents, disinfecting the air conditioner so that the air comes out clean and without bacteria, in addition to using filters and filters so that dust does not spread in the rooms so as not to cause some diseases for adults and children Which are the following:
• Allergies, which occur due to the accumulation of dust and its distribution to the room through the air conditioner after it stops for a period of time, and thus bacteria and dust increase inside it.
Sinusitis is caused by viruses and bacteria that increase infections that appear in the form of suppuration inside the pharynx, and sometimes surgical intervention is required to treat this condition.
• Dust in air conditioner contains Legionella bacteria and causes Legionnaires' disease in the respiratory system.
• The conditioner causes dryness of the skin, especially for sensitive skin, which is greatly affected by the presence of dust.
Sterilization and disinfection company in Riyadh
The sterilization company deals in a distinctive and appropriate manner to the state of anticipation that exists in the world at the present time, and thus works to provide materials for sterilization and disinfection that help to prepare all places in the required manner, protect those in them from various diseases and eliminate bacteria, viruses and germs that spread in many places.
شركة تنظيف مكيفات السبلت بالرياض
The Kingdom Services Company .. maintenance of air conditioners is committed to implementing all the steps for cleaning split air conditioners, and they are as follows:
• Electricity is disconnected from all parts of the air conditioner so as not to cause damage or damage during cleaning.
• The technician deals with the air conditioner according to its components and type.
• Begins to clean the filters and prepare them to be placed again.
• During cleaning, the indoor unit is covered with plastic material so as not to damage furniture, curtains and walls.
• The photovoltaic panel of the air conditioner and the motor must be insulated as well.
• The water pump is used to clean the air conditioner with the highest quality.
• After all the cleaning steps are completed, work is done to assemble the unit correctly and reinstall it professionally.
شركة تنظيف وصيانة مكيفات بالدمام
An air conditioner cleaning and maintenance company in Dammam has the ability to carry out tasks either manually or by using the advanced tools that you have with the specialized technician in order to avoid errors and damages that can occur in the absence of professional dealing with air conditioners.
A company to dismantle and install air conditioners in Riyadh
Sometimes we need specialists in dismantling and installing air conditioners of all kinds
شركة خدمات المملكة

    Profile picture for user gurdallica
    13.12.2021 - 03:30

    sorunu çözdünüz mü?

    jyoti kumar
    08.03.2022 - 02:53

    I don't have the answer to this question. Delhi Escorts Services Please post your blog more.