- Cyber World Technologies







MainActivity.java:





FireApp.java

1
2
3
4
5
6
7
8
9
10
11
12
13


package in.cyberworldtechnologies.sampmessage;
import android.app.Application;
import com.firebase.client.Firebase;
public class FireApp extends Application {



    @Override    public void onCreate(){
        super.onCreate();

        Firebase.setAndroidContext( this );    }
}




activity_main.xml:

add this dependecy:

AndroidManifest.xml: