How to get user uid from firebase on android?
问题 I want to save data to firebase. This is my Activity Code : private Firebase firebaseRef; Firebase.setAndroidContext(this); try { mUserId = firebaseRef.getAuth().getUid(); } catch (Exception e) { // loginWithMailView(); } itemsUrl = Constants.FIREBASE_URL + "/Person/" + mUserId +"/Information/"; //Person + null (?) + the other information and this is for my button code : buttonSave = (Button) findViewById(R.id.btnKaydolKayit); buttonSave.setOnClickListener(new View.OnClickListener() {