Android &引用;初始化推送通知“;Wordpress推送通知

Android &引用;初始化推送通知“;Wordpress推送通知,android,wordpress,notifications,push,builder,Android,Wordpress,Notifications,Push,Builder,几个月来,我一直在研究Android Studio中的项目,最近我一直在尝试在网站上实现“Wordpress推送通知”插件,并添加Deliestudio.com为Android应用程序提供的库。我遵循这些指示: 但由于我没有太多经验,我不知道在何处添加此说明: Initialize Push Notifications Add the following calls using the PushNotifications.Builder to initialize the librar

几个月来,我一直在研究Android Studio中的项目,最近我一直在尝试在网站上实现“Wordpress推送通知”插件,并添加Deliestudio.com为Android应用程序提供的库。我遵循这些指示:

但由于我没有太多经验,我不知道在何处添加此说明:

Initialize Push Notifications

    Add the following calls using the PushNotifications.Builder to initialize the library with your site’s url:

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

        new PushNotifications.Builder(this, "http://[YOUR WORDPRESS SERVER]")
          .build();
      }
    }
我做了一些研究,但我无法理解,我知道要求别人一步一步地教我太多了,但我要求有更多经验的人给我启发,至少给出我应该插入说明的路径(例如,如果它应该插入mainactivity、Build.gradle等)在我发布的链接中给出,因为在引用的网站中没有详细解释。如果你能帮助我给出这条路径,我将不胜感激,在这条路径之后给出其他路径,那会更好。但是提前感谢你的帮助,请原谅我的英语