Class AndroidSmackInitializer

  • All Implemented Interfaces:
    SmackInitializer

    public class AndroidSmackInitializer
    extends Object
    implements SmackInitializer
    This class initialized Smack for you on Android. Unfortunately it can't do it automatically, you should call initialize(Context) once before performing your first XMPP connection with Smack. Note that on Android 21 or higher you need to hold the ACCESS_NETWORK_STATE permission.
    • Method Detail

      • initialize

        public static void initialize​(android.content.Context context)
        Initializes Smack on Android. You should call this method fore performing your first XMPP connection with Smack.
        Parameters:
        context - an Android context.
        Since:
        4.3