private SmackAndroid(Context ctx) { mCtx = ctx; DNSUtil.setDNSResolver(DNSJavaResolver.getInstance()); InitStaticCode.initStaticCode(ctx); ConfigureProviderManager.configureProviderManager(); maybeRegisterReceiver(); }
private SmackAndroid(Context ctx) { ConfigureProviderManager.configureProviderManager(); InitStaticCode.initStaticCode(ctx); mConnectivityChangedReceiver = new ConnectivtyChangedReceiver(); ctx.registerReceiver(mConnectivityChangedReceiver, new IntentFilter( "android.net.conn.CONNECTIVITY_CHANGE")); mCtx = ctx; }
private SmackAndroid(Context ctx) { mCtx = ctx; ConfigureProviderManager.configureProviderManager(); InitStaticCode.initStaticCode(ctx); maybeRegisterReceiver(); }