Helloeveryone,Ihaveaquestionabouthowtogettheparentnodethatwouldbeinthecaseoftheimage-Kt...Imadesomecodebutitdoesnotwork.
protectedvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.activity_criar_cardapio);codigo=(TextView)findViewById(R.id.textView3);ref.child("Mesas").getParent();}
I want to assign this String to a variable to pass as a parameter to another function.