Get link from Firebase Database

Solution for Get link from Firebase Database
is Given Below:

I’d like to import link from Firebase Database as clickable button
Can someone help me,
Im tryin to do like this, but it doesnt work

thanks

public void onClick(View v) {

            String lnk = Objects.toString(dataSnapshot.child("link").getValue(), null);
            {
                startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(lnk)));
            }
        }