I'm trying to assign a string that contains a url for a place in my database to a DatabaseReference type. Example:
String strRef = "my database url";
DatabaseReference ref = //here I want to assign the content of strRef.
Update (from comment to Alex's answer):
I'm getting from another activity a specific url that point on a place in my database.and now I need to cast it to a DatabaseReference type that I'll be able to read from this place in my database.