0

Using Firebase Database, how would I setAndroidContext in Kotlin?

This is it in Java:

public class SimpleDatabase extends Application {
    @Override
    public void onCreate() {
        super.onCreate();

    Firebase.setAndroidContext(this);
}}
2
  • 1
    That API is for a very old version of the Firebase SDK that's no longer supported. I suggest upgrading. There is no need to do anything like this in recent versions. firebase.google.com/docs/database/android/start Commented Aug 18, 2020 at 14:48
  • Sorry, I'm just watching tutorials on YouTube... Commented Aug 18, 2020 at 15:01

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.