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() {
            @Override
            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);
            }

            @Override
            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?

914 Görüntülenme

8 Cevap

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

Profile picture for user nohaahmed202112
nohaahmed202112
05.09.2022 - 08:32

 

هناك العديد من شركات نقل الأثاث في جدة، لكن ليست جميعها متساوية. بعضها أكثر موثوقية وكفاءة من البعض الآخر، وبعضها يقدم قيمة أفضل مقابل المال. للعثور على أفضل شركة لنقل الأثاث في جدة، من المهم إجراء بعض الأبحاث والمقارنة بين الشركات المختلفة. من الجيد أيضًا طلب توصيات من الأصدقاء أو العائلة الذين استخدموا شركة نقل أثاث في جدة من قبل. بمجرد أن يكون لديك قائمة مختصرة بالشركات المحتملة، يمكنك بعد ذلك الاتصال بهم للحصول على عروض أسعار ومعرفة المزيد عن خدماتهم.
افضل شركة نقل عفش بجدة

إذا كنت تبحث عن أفضل شركة لنقل الأثاث في جدة، فابحث عن شركة المثالية لنقل الأثاث. نحن شركة نقل مهنية متخصصة في نقل الأثاث وتخزينه. لدينا فريق من المشغلين ذوي الخبرة والمؤهلين الذين سيهتمون بأثاثك وممتلكاتك بأقصى قدر من العناية والاهتمام. نحن نقدم مجموعة متنوعة من الخدمات بما في ذلك التحركات المحلية والمسافات الطويلة وخدمات التعبئة والتفريغ وخيارات التخزين. نقدم أيضًا أسعارًا تنافسية وتقديرًا مجانيًا. اتصل بنا اليوم لمعرفة المزيد عن خدماتنا
شركة تنظيف منازل بجدة

شركة تنظيف المنزل بجدة هي شركة تنظيف منازل محترفة تقدم خدماتها للمقيمين في جدة، المملكة العربية السعودية. لدى الشركة فريق من عمال النظافة ذوي الخبرة والمؤهلين الذين يقدمون خدماتهم بأسعار معقولة. تقدم الشركة مجموعة واسعة من خدمات التنظيف بما في ذلك: التنظيف العام للمنزل، وتنظيف المطبخ، وتنظيف الحمامات، والغسيل.
شركة تنظيف مكيفات بالرياض

الرياض هي عاصمة المملكة العربية السعودية وأكثرها اكتظاظًا بالسكان. كما أنها عاصمة منطقة الرياض، وتنتمي إلى منطقتي نجد واليمامة التاريخيتين. فهي موطن لأكثر من 7 ملايين شخص، وهي واحدة من أسرع المدن نموًا في العالم. شركة المثالية لتنظيف مكيفات الهواء (RACC) هي شركة رائدة في تقديم خدمات تنظيف مكيفات الهواء في الرياض. تأسست شركة RACC في عام 2001، ومنذ ذلك الحين نمت لتصبح واحدة من أكبر شركات تنظيف أجهزة تكييف الهواء في المملكة العربية السعودية. توظف شركة RACC أكثر من 300 موظف، وتقدم خدمات تنظيف مكيفات الهواء للعملاء السكنيين والتجاريين.
شركة نقل عفش بمكة

هي شركة نقل أثاث في مكة المكرمة، المملكة العربية السعودية. تعمل الشركة منذ أكثر من 10 سنوات وتقدم مجموعة متنوعة من الخدمات بما في ذلك نقل الأثاث والتخزين والتعبئة. هي شركة مملوكة للعائلة وتديرها وتكرس جهودها لتقديم خدمة عالية الجودة لعملائها. تمتلك الشركة فريقًا من المحركين ذوي الخبرة والمعتمدين المدربين على التعامل مع جميع أنواع الأثاث. تلتزم شركة بتوفير تجربة نقل آمنة وفعالة لعملائها.
شركة مظلات جده
شركة مظلات جدة هي شركة سعودية تقوم بتصنيع وبيع المظلات. تأسست عام 2004 من قبل الأخوين عبد الله وأسامة الصالح. المقر الرئيسي للشركة في مدينة جدة بالمملكة العربية السعودية. تبيع الشركة المظلات تحت الاسم التجاري "JUC"، ولديها مجموعة واسعة من المنتجات، بما في ذلك المظلات الشمسية ومظلات المطر ومظلات الأطفال. تنتج JUC أيضًا مجموعة من المظلات الفاخرة المصنوعة من مواد عالية الجودة وحرفية. تتمتع كلية الجبيل الجامعية بحضور قوي في سوق المملكة العربية السعودية، وتباع منتجاتها في العديد من البلدان حول العالم. تمتلك الشركة قاعدة عملاء دولية متنامية، وتتوفر منتجاتها عبر الإنترنت وفي متاجر في الولايات المتحدة وأوروبا وآسيا والشرق الأوسط.
شركة مظلات الرياض
شركة مظلات الرياض هي شركة سعودية تصنع المظلات. تأسست عام 2003 ومقرها الرئيسي في الرياض. الشركة لديها مصنع في جدة وصالة عرض في دبي. توظف أكثر من 200 شخص وتبلغ مبيعاتها 100 مليون ريال سعودي (26.7 مليون دولار أمريكي). تنتج شركة مظلات الرياض مجموعة واسعة من المظلات، بما في ذلك المظلات الشمسية ومظلات الشاطئ ومظلات الحدائق ومظلات الفناء. كما تقوم بتصنيع المظلات تُباع منتجاتها في المملكة العربية السعودية والإمارات العربية المتحدة وقطر والكويت والبحرين وعمان واليمن.
نبذه عن شركة المثالية للخدمات المنزلية
تقدم شركتنا مجموعة واسعة من الخدمات لعملائها. نقدم خدمات التنظيف والمكافحة وتركيب الاثاث ونقل الاثاث داخل وخارج الرياض والتدريب والدعم في مجالات تحسين عمليات التنظيف، تمتلك شركتنا فريقًا من المهنين ذوي الخبرة الملتزمين بمساعدة عملائنا على تحقيق أهدافهم.

Profile picture for user peter654
peter654
30.08.2022 - 09:09

if you really need to become expert in driving, your really need to enroll in a driving school,.facebook business account

Profile picture for user brianwilson
brianwilson
19.08.2022 - 11:15

Thanks for sharing one of the best posts I’ve ever read lewdle on the internet. 

Profile picture for user wekom34078
wekom34078
09.06.2022 - 09:14

I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work. Nft games

Profile picture for user enigma2.king
enigma2.king
06.06.2022 - 01:41

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.

 

نوسان 24

دوره ارز دیجیتال

دوره آموزش ارز دیجیتال


بهترین دوره ارز دیجیتال


دوره فارکس

greenbhl

زبان 24


آموزش زبان فرانسه

کلاس زبان فرانسه

آزمون فرانسه
 

Profile picture for user piyaone
piyaone
03.05.2022 - 04:16

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

Profile picture for user hanaawork1
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
    gurdallica
    13.12.2021 - 03:30

    sorunu çözdünüz mü?