I want to get the same ID

0

Good afternoon I was wondering if it is possible to get the phone ID for the same functions or as in the example below. I want to put the ID that is signaled black below the "SMS". Is it possible to place? How can I do it? Below is the code

privatestaticfinalStringTAG=FirebaseDatabaseHelper.class.getSimpleName();privateDatabaseReferencedatabaseReference;publicTelaPolicia(){demoRef=FirebaseDatabase.getInstance().getReference();}publicvoidcreateUserInFirebaseDatabase(StringuserId,FirebaseUserEntityfirebaseUserEntity){Map<String,FirebaseUserEntity>user=newHashMap<String,FirebaseUserEntity>();user.put(userId,firebaseUserEntity);demoRef.child("SMS").setValue(user);
}
    
asked by anonymous 21.11.2017 / 17:59

0 answers