First letter of variable's name is changing from uppercase to lowercaseImages not loading from URL by Picasso from Firebase DatabaseFirst letter capitalization for EditTextHow can I verify if a username on Firebase is available?how to get data from firebase databaseUser data not being created or inserted into Firebase database correctlyUse a username as key in firebase for storing usersMy app keeps jumping back to an activity when there is a new node in Firebase and AndroidSaving data to Firebase with a Username ReferenceHow to only store data for current logged in user using FirestoreHow to Store Chat Under UidHow to update the UI on firebase realtime database “push” in offline mode

Does the Prepare Food ability from Cook's Utensils stack?

Is it more effective to add yeast before or after kneading?

Can I take new (still in their boxes) PC parts in my checked in luggage?

Why are there two fundamental laws of logic?

Co-supervisor comes to the office to help her students, which distracts me

Is it acceptable to say that a reviewer's concern is not going to be addressed because then the paper would be too long?

What should I consider when deciding whether to delay an exam?

relating two diagrams in tikzcd

Why does C++ have 'Undefined Behaviour' and other languages like C# or Java don't?

Is it possible to encode a message in such a way that can only be read by someone or something capable of seeing into the very near future?

Line segments inside a square

What secular civic space would pioneers build for small frontier towns?

Difference between types of yeast

Is the mass of paint relevant in rocket design?

Designing a time thief proof safe

I am 15 years old and do not go to a Yeshiva but would like to learn Talmud. A few rabbis near me said they could teach me. How should I start

Do wheelchair aircraft exist?

Why does this image of Jupiter look so strange?

Suffocation while cooking under an umbrella?

Is differentiation as a map discontinuous?

Examples of "unsuccessful" theories with afterlives

My Project Manager does not accept carry-over in Scrum, Is that normal?

Late 1970's and 6502 chip facilities for operating systems

Is there any relation/leak between two sections of LM358 op-amp?



First letter of variable's name is changing from uppercase to lowercase


Images not loading from URL by Picasso from Firebase DatabaseFirst letter capitalization for EditTextHow can I verify if a username on Firebase is available?how to get data from firebase databaseUser data not being created or inserted into Firebase database correctlyUse a username as key in firebase for storing usersMy app keeps jumping back to an activity when there is a new node in Firebase and AndroidSaving data to Firebase with a Username ReferenceHow to only store data for current logged in user using FirestoreHow to Store Chat Under UidHow to update the UI on firebase realtime database “push” in offline mode






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I created an iOS app that stores the data to Firebase realtime database like this:



users
- ID
-- Email: "test@domain.com"
-- UsersName: "test"
-- Level: 1
-- XP: 0


Now I started with Android development using Kotlin and the data is stored with the first letter of the values name lowercased like this:



users
- ID
-- email: "test@domain.com"
-- usersName: "test" (No mistake, the N is uppercased)
-- level: 1
-- xp: 0 (No mistake, the P is lowercase)


This is my code:



data class User(var UsersName: String = "",
var XP: Int = 0,
var Level: Int = 1,
var Email: String = "")


private fun saveUserToFirebaseDatabase()
val uid = FirebaseAuth.getInstance().uid ?: ""
val ref = FirebaseDatabase.getInstance().getReference("users/$uid")
val mDatabase = FirebaseDatabase.getInstance().getReference();
val username = usernameSignUp.text.toString()
val user = User(username, 0, 1, SignUpEmailtext.text.toString())
print(user)
mDatabase.child("users").child(uid).setValue(user)
.addOnSuccessListener


.addOnFailureListener






I expect the names of the values to be exactly how they are named in the class (like the iOS app saves them).










share|improve this question
































    0















    I created an iOS app that stores the data to Firebase realtime database like this:



    users
    - ID
    -- Email: "test@domain.com"
    -- UsersName: "test"
    -- Level: 1
    -- XP: 0


    Now I started with Android development using Kotlin and the data is stored with the first letter of the values name lowercased like this:



    users
    - ID
    -- email: "test@domain.com"
    -- usersName: "test" (No mistake, the N is uppercased)
    -- level: 1
    -- xp: 0 (No mistake, the P is lowercase)


    This is my code:



    data class User(var UsersName: String = "",
    var XP: Int = 0,
    var Level: Int = 1,
    var Email: String = "")


    private fun saveUserToFirebaseDatabase()
    val uid = FirebaseAuth.getInstance().uid ?: ""
    val ref = FirebaseDatabase.getInstance().getReference("users/$uid")
    val mDatabase = FirebaseDatabase.getInstance().getReference();
    val username = usernameSignUp.text.toString()
    val user = User(username, 0, 1, SignUpEmailtext.text.toString())
    print(user)
    mDatabase.child("users").child(uid).setValue(user)
    .addOnSuccessListener


    .addOnFailureListener






    I expect the names of the values to be exactly how they are named in the class (like the iOS app saves them).










    share|improve this question




























      0












      0








      0








      I created an iOS app that stores the data to Firebase realtime database like this:



      users
      - ID
      -- Email: "test@domain.com"
      -- UsersName: "test"
      -- Level: 1
      -- XP: 0


      Now I started with Android development using Kotlin and the data is stored with the first letter of the values name lowercased like this:



      users
      - ID
      -- email: "test@domain.com"
      -- usersName: "test" (No mistake, the N is uppercased)
      -- level: 1
      -- xp: 0 (No mistake, the P is lowercase)


      This is my code:



      data class User(var UsersName: String = "",
      var XP: Int = 0,
      var Level: Int = 1,
      var Email: String = "")


      private fun saveUserToFirebaseDatabase()
      val uid = FirebaseAuth.getInstance().uid ?: ""
      val ref = FirebaseDatabase.getInstance().getReference("users/$uid")
      val mDatabase = FirebaseDatabase.getInstance().getReference();
      val username = usernameSignUp.text.toString()
      val user = User(username, 0, 1, SignUpEmailtext.text.toString())
      print(user)
      mDatabase.child("users").child(uid).setValue(user)
      .addOnSuccessListener


      .addOnFailureListener






      I expect the names of the values to be exactly how they are named in the class (like the iOS app saves them).










      share|improve this question
















      I created an iOS app that stores the data to Firebase realtime database like this:



      users
      - ID
      -- Email: "test@domain.com"
      -- UsersName: "test"
      -- Level: 1
      -- XP: 0


      Now I started with Android development using Kotlin and the data is stored with the first letter of the values name lowercased like this:



      users
      - ID
      -- email: "test@domain.com"
      -- usersName: "test" (No mistake, the N is uppercased)
      -- level: 1
      -- xp: 0 (No mistake, the P is lowercase)


      This is my code:



      data class User(var UsersName: String = "",
      var XP: Int = 0,
      var Level: Int = 1,
      var Email: String = "")


      private fun saveUserToFirebaseDatabase()
      val uid = FirebaseAuth.getInstance().uid ?: ""
      val ref = FirebaseDatabase.getInstance().getReference("users/$uid")
      val mDatabase = FirebaseDatabase.getInstance().getReference();
      val username = usernameSignUp.text.toString()
      val user = User(username, 0, 1, SignUpEmailtext.text.toString())
      print(user)
      mDatabase.child("users").child(uid).setValue(user)
      .addOnSuccessListener


      .addOnFailureListener






      I expect the names of the values to be exactly how they are named in the class (like the iOS app saves them).







      android firebase firebase-realtime-database kotlin






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 29 at 11:03









      Alex Mamo

      57.8k11 gold badges42 silver badges78 bronze badges




      57.8k11 gold badges42 silver badges78 bronze badges










      asked Mar 28 at 17:38









      Alex KarapanosAlex Karapanos

      1211 gold badge2 silver badges9 bronze badges




      1211 gold badge2 silver badges9 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0
















          Kotlin works on JVM (Java Virtual Machine), so in order to be able to run a .kt file, first of all it should be compiled into a Java file. So when using a class that looks like:



          data class User(var UsersName: String = "",
          var XP: Int = 0,
          var Level: Int = 1,
          var Email: String = "")


          The corresponding Java file is created and according to the Java Naming Conventions regading variables:




          It should be a lowercase letter such as java, lang.




          This means that doesn't matter if you choose the name of your fields to start either with an uppercase or a lowercase, all fiels are converted to start with a lowercase. That's why the properties in your database are present like that. Not only in Java/Kotlin is this convention available but also in other programming languages, so I recommend you to use this recommendation in your projects.



          Regarding Kotlin, remember that at the end, everything is converted to byte code so it can work on JVM.






          share|improve this answer

























          • Okay, this means that I have to change the entire iOS app. That's nearly impossible.. My database has a lot of users already.. I wish I new that before I started with iOS version.. Is there any other solution?

            – Alex Karapanos
            Mar 29 at 11:16











          • The rules of naming the variables are also specified in the official documentation. I don't know if you can force Kotlin not to do that. I think you should ask a separate question for that. Regarding reading those kind of fields, you can take a look at my answer from this post.

            – Alex Mamo
            Mar 29 at 11:27














          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );














          draft saved

          draft discarded
















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55403797%2ffirst-letter-of-variables-name-is-changing-from-uppercase-to-lowercase%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0
















          Kotlin works on JVM (Java Virtual Machine), so in order to be able to run a .kt file, first of all it should be compiled into a Java file. So when using a class that looks like:



          data class User(var UsersName: String = "",
          var XP: Int = 0,
          var Level: Int = 1,
          var Email: String = "")


          The corresponding Java file is created and according to the Java Naming Conventions regading variables:




          It should be a lowercase letter such as java, lang.




          This means that doesn't matter if you choose the name of your fields to start either with an uppercase or a lowercase, all fiels are converted to start with a lowercase. That's why the properties in your database are present like that. Not only in Java/Kotlin is this convention available but also in other programming languages, so I recommend you to use this recommendation in your projects.



          Regarding Kotlin, remember that at the end, everything is converted to byte code so it can work on JVM.






          share|improve this answer

























          • Okay, this means that I have to change the entire iOS app. That's nearly impossible.. My database has a lot of users already.. I wish I new that before I started with iOS version.. Is there any other solution?

            – Alex Karapanos
            Mar 29 at 11:16











          • The rules of naming the variables are also specified in the official documentation. I don't know if you can force Kotlin not to do that. I think you should ask a separate question for that. Regarding reading those kind of fields, you can take a look at my answer from this post.

            – Alex Mamo
            Mar 29 at 11:27
















          0
















          Kotlin works on JVM (Java Virtual Machine), so in order to be able to run a .kt file, first of all it should be compiled into a Java file. So when using a class that looks like:



          data class User(var UsersName: String = "",
          var XP: Int = 0,
          var Level: Int = 1,
          var Email: String = "")


          The corresponding Java file is created and according to the Java Naming Conventions regading variables:




          It should be a lowercase letter such as java, lang.




          This means that doesn't matter if you choose the name of your fields to start either with an uppercase or a lowercase, all fiels are converted to start with a lowercase. That's why the properties in your database are present like that. Not only in Java/Kotlin is this convention available but also in other programming languages, so I recommend you to use this recommendation in your projects.



          Regarding Kotlin, remember that at the end, everything is converted to byte code so it can work on JVM.






          share|improve this answer

























          • Okay, this means that I have to change the entire iOS app. That's nearly impossible.. My database has a lot of users already.. I wish I new that before I started with iOS version.. Is there any other solution?

            – Alex Karapanos
            Mar 29 at 11:16











          • The rules of naming the variables are also specified in the official documentation. I don't know if you can force Kotlin not to do that. I think you should ask a separate question for that. Regarding reading those kind of fields, you can take a look at my answer from this post.

            – Alex Mamo
            Mar 29 at 11:27














          0














          0










          0









          Kotlin works on JVM (Java Virtual Machine), so in order to be able to run a .kt file, first of all it should be compiled into a Java file. So when using a class that looks like:



          data class User(var UsersName: String = "",
          var XP: Int = 0,
          var Level: Int = 1,
          var Email: String = "")


          The corresponding Java file is created and according to the Java Naming Conventions regading variables:




          It should be a lowercase letter such as java, lang.




          This means that doesn't matter if you choose the name of your fields to start either with an uppercase or a lowercase, all fiels are converted to start with a lowercase. That's why the properties in your database are present like that. Not only in Java/Kotlin is this convention available but also in other programming languages, so I recommend you to use this recommendation in your projects.



          Regarding Kotlin, remember that at the end, everything is converted to byte code so it can work on JVM.






          share|improve this answer













          Kotlin works on JVM (Java Virtual Machine), so in order to be able to run a .kt file, first of all it should be compiled into a Java file. So when using a class that looks like:



          data class User(var UsersName: String = "",
          var XP: Int = 0,
          var Level: Int = 1,
          var Email: String = "")


          The corresponding Java file is created and according to the Java Naming Conventions regading variables:




          It should be a lowercase letter such as java, lang.




          This means that doesn't matter if you choose the name of your fields to start either with an uppercase or a lowercase, all fiels are converted to start with a lowercase. That's why the properties in your database are present like that. Not only in Java/Kotlin is this convention available but also in other programming languages, so I recommend you to use this recommendation in your projects.



          Regarding Kotlin, remember that at the end, everything is converted to byte code so it can work on JVM.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 29 at 11:01









          Alex MamoAlex Mamo

          57.8k11 gold badges42 silver badges78 bronze badges




          57.8k11 gold badges42 silver badges78 bronze badges















          • Okay, this means that I have to change the entire iOS app. That's nearly impossible.. My database has a lot of users already.. I wish I new that before I started with iOS version.. Is there any other solution?

            – Alex Karapanos
            Mar 29 at 11:16











          • The rules of naming the variables are also specified in the official documentation. I don't know if you can force Kotlin not to do that. I think you should ask a separate question for that. Regarding reading those kind of fields, you can take a look at my answer from this post.

            – Alex Mamo
            Mar 29 at 11:27


















          • Okay, this means that I have to change the entire iOS app. That's nearly impossible.. My database has a lot of users already.. I wish I new that before I started with iOS version.. Is there any other solution?

            – Alex Karapanos
            Mar 29 at 11:16











          • The rules of naming the variables are also specified in the official documentation. I don't know if you can force Kotlin not to do that. I think you should ask a separate question for that. Regarding reading those kind of fields, you can take a look at my answer from this post.

            – Alex Mamo
            Mar 29 at 11:27

















          Okay, this means that I have to change the entire iOS app. That's nearly impossible.. My database has a lot of users already.. I wish I new that before I started with iOS version.. Is there any other solution?

          – Alex Karapanos
          Mar 29 at 11:16





          Okay, this means that I have to change the entire iOS app. That's nearly impossible.. My database has a lot of users already.. I wish I new that before I started with iOS version.. Is there any other solution?

          – Alex Karapanos
          Mar 29 at 11:16













          The rules of naming the variables are also specified in the official documentation. I don't know if you can force Kotlin not to do that. I think you should ask a separate question for that. Regarding reading those kind of fields, you can take a look at my answer from this post.

          – Alex Mamo
          Mar 29 at 11:27






          The rules of naming the variables are also specified in the official documentation. I don't know if you can force Kotlin not to do that. I think you should ask a separate question for that. Regarding reading those kind of fields, you can take a look at my answer from this post.

          – Alex Mamo
          Mar 29 at 11:27





















          draft saved

          draft discarded















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55403797%2ffirst-letter-of-variables-name-is-changing-from-uppercase-to-lowercase%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현