Class AndroidSmackInitializer

  • All Implemented Interfaces:
    SmackInitializer

    public class AndroidSmackInitializer
    extends java.lang.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 Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.Exception> initialize()  
      static void initialize​(android.content.Context context)
      Initializes Smack on Android.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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