Java 类org.androidannotations.annotations.AfterInject 实例源码

项目:ambilike    文件:HueNotification.java   
@AfterInject
public void AfterInject()
{
  n_view = new HueNotificationView(context);

  notificationIcon = R.drawable.notification_icon;
  notificationID = R.integer.hue_notification;
  brightness = 100;

  Intent notificationIntent = new Intent(context, HueNotificationReceiver_.class);
  n_view.setIntent(notificationIntent);

  notification = new Notification.Builder(context)
      .setContent(n_view)
      .setSmallIcon(notificationIcon)
      .setOngoing(true)
      .setPriority(Notification.PRIORITY_MAX)
      .build();


  setBrightness(brightness);
}
项目:wifi_backend    文件:gpsMonitor.java   
@AfterInject
protected void init() {
    if (DEBUG) {
        Log.i(TAG, "service started");
    }

    sampleTime = Configuration.with(this).minimumGpsTimeInMilliseconds();
    sampleDistance = Configuration.with(this).minimumGpsDistanceInMeters();

    try {
        locationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER,
                sampleTime,
                sampleDistance,
                gpsMonitor.this);
    } catch (SecurityException ex) {
        if(DEBUG) {
            Log.w(TAG, "init()", ex);
        }
    }

    Configuration.with(this).register(this);
}
项目:selfoss-android    文件:SelfossImageLoader.java   
@AfterInject
protected void init() {
    DisplayImageOptions options = new DisplayImageOptions.Builder()
            .cacheInMemory(true)
            .cacheOnDisk(true)
            .displayer(new FadeInBitmapDisplayer(500, true, false, false))
            .build();
    ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(context)
            .defaultDisplayImageOptions(options)
            .imageDownloader(this)
            .build();
    loader = com.nostra13.universalimageloader.core.ImageLoader.getInstance();
    if (!loader.isInited()) {
        loader.init(config);
    }
}
项目:party-reader    文件:Manager.java   
@AfterInject
public void afterInject() {
    this.redditClient = new RedditClient(this.userAgentFactory.getUserAgent());
    this.authenticationManager = AuthenticationManager.get();
    this.authenticationManager.init(this.redditClient, new RefreshTokenHandler(this.tokenStore, this.redditClient));
    this.accountManager = new AccountManager(this.redditClient);
}
项目:party-reader    文件:SubredditActivity.java   
@AfterInject
protected void createPaginator() {
    this.paginator = new SubredditPaginator(this.manager.getClient());

    if (this.subreddit != null && this.subreddit.length() > 0) {
        this.paginator.setSubreddit(this.subreddit);
    }
}
项目:DHK-Recollection    文件:Main2Activity.java   
@AfterInject
    void ok(){
        System.out.println(vP.view2);
        System.out.println(vP.view2.textView);
//        System.out.println(view2);
//        vP.view2.radioGroup232.setVisibility(View.VISIBLE);
//        vP.view2.textView.setText("12");
}
项目:chaincloud-v    文件:ChainCloudVApplication.java   
@AfterInject
void initContext() {
    mContext = getApplicationContext();

    initCoinType();

    initLog();
    initVWebDomain();
    initWakeLock();

    WorkService_.intent(getApplicationContext()).start();
    SMSServiceImpl_.intent(getApplicationContext()).start();
    AddressService_.intent(getApplicationContext()).start();
}
项目:simiasque    文件:ViewService.java   
@AfterInject
public void init() {
    if (holder.getCurrentOverlay() == null) {
        View overlayView = new OverlayView(this);
        windowManager.addView(overlayView, OverlayView.createLayoutParams(retrieveStatusBarHeight() + SAFETY_MARGIN));
        holder.setCurrentOverlay(overlayView);
    }
    holder.hideView();
}
项目:ambilike    文件:HueController.java   
@AfterInject
void init()
{
  hue = Hue.getInstance();
  hue.setHueListener(new HueListener(context, preferences, this, hueNotification));
  transition = preferences.Transitiontime().get();
  colorExp = preferences.Colorfullness().get();
  briMult = preferences.Brightness().get();
  minBri = preferences.MinBrightness().get();
  maxBri = preferences.MaxBrightness().get();
  isConnected = false;
}
项目:ETStreamHome    文件:MusicScanner.java   
@AfterInject
void prepareQueries() {
    try {
        songInDbQuery = songDao.queryBuilder().where().eq("fullPath", fullPathArg).prepare();
    }
    catch (SQLException se) {
        throw new RuntimeException(se);
    }
}
项目:autoamplifier    文件:Amplifier.java   
@AfterInject
void init() {
    currentVolume = audioManager.getStreamVolume(MUSIC_STREAM);
    lastVolume = audioManager.getStreamVolume(MUSIC_STREAM);
    micLow = preferenceProvider.getMicLow();
    micHigh = preferenceProvider.getMicHigh();
    volumeLow = preferenceProvider.getVolumeLow();
    volumeHigh = preferenceProvider.getVolumeHigh();
    if (!mediaRecorderInitialised) {
        initialiseMediaRecorder();
        mediaRecorderInitialised = true;
    }
    initialiseMicArray();
}
项目:Alldebrid    文件:MyActivity.java   
@AfterInject
public void addCallbacks() {
    SingletonHolder.SINGLETON.init(this);
    SingletonHolder.SINGLETON.getDebrider().registerObserver(this);
    Uri data = getIntent().getData();
    if (data != null) {
        if (data.toString().startsWith("magnet"))
            SingletonHolder.SINGLETON.getDebrider().addTorrent(data.toString(), true, false);
        else
            SingletonHolder.SINGLETON.getDebrider().unrestrainLink(data.toString());
    }
}
项目:settlers-remake    文件:NotificationBuilder.java   
@AfterInject
void setupBuilder() {
    Intent gameActivityIntent = GameActivity_.intent(context).action(Actions.ACTION_RESUME_GAME).get();
    PendingIntent gameActivityPendingIntent = PendingIntent.getActivity(context, 0, gameActivityIntent, 0);

    builder = new NotificationCompat.Builder(context)
            .setSmallIcon(R.drawable.icon)
            .setContentTitle(title)
            .setContentIntent(gameActivityPendingIntent);
}
项目:sony-camera-remote-java    文件:SelfTimerSelector.java   
@AfterInject
void init() {
    setEnabled(false);
    rpc.registerInitCallback(new Rpc.ConnectionListener() {
        @Override
        public void onConnected() {
            setItemValues(rpc.getAvailableSelfTimers());
            setEnabled(true);
        }

        @Override
        public void onConnectionFailed(Throwable e) {
        }
    });
}
项目:Produce-Price-Checker    文件:DataLoader.java   
@AfterInject
protected void afterInject() {
    client.setRestErrorHandler(new RestErrorHandler() {
        @Override
        public void onRestClientExceptionThrown(NestedRuntimeException e) {
            //show Toast and Reload button
            loadClientData();
        }
    });
}
项目:monodict    文件:Dictionaries.java   
@AfterInject
void afterInject() {
    adapter = new JsonPreferencesFieldAdapter(this, Data.class);
    Data data = getData();
    if (data.dictionaries == null) {
        data.dictionaries = new ArrayList<>();
        adapter.saveData(data);
    }
}
项目:monodict    文件:FlashcardActivityState.java   
@AfterInject
void afterInject() {
    random.setSeed(Calendar.getInstance().getTime().getTime());
    adapter = new JsonPreferencesFieldAdapter(this, Data.class);
    if (getRandomSeed() == 0) {
        refreshRandomSeed();
    }
}
项目:moVirt    文件:UriDependencies.java   
@AfterInject
void init() {
    for (final UriDependency dependency : UriMatcher.getUriDependencies()) {
        context.getContentResolver().registerContentObserver(dependency.observe, true, new ContentObserver(null) {
            @Override
            public void onChange(boolean selfChange) {
                super.onChange(selfChange);
                context.getContentResolver().notifyChange(dependency.notify, null);
            }
        });
    }
}
项目:moVirt    文件:ProviderFacade.java   
@AfterInject
void initContentProviderClient() {
    final ContentResolver contentResolver = context.getContentResolver();
    contentClient = contentResolver.acquireContentProviderClient(OVirtContract.BASE_CONTENT_URI);

    SqlBrite sqlBrite = new SqlBrite.Builder().build();
    // TODO possibly refactor to use sqlBrite.wrapDatabaseHelper(), but all queries must use SqlBrite
    briteResolver = sqlBrite.wrapContentProvider(contentResolver, Schedulers.io());
}
项目:moVirt    文件:IntentResolvers.java   
@AfterInject
void init() {
    resolvers.put(StorageDomain.class, storageDomainIntentResolver);
    resolvers.put(Host.class, hostIntentResolver);
    resolvers.put(Vm.class, vmIntentResolver);
    resolvers.put(Snapshot.class, snapshotIntentResolver);
}
项目:selfoss-android    文件:ConfigActivity.java   
@AfterInject
protected void init() {
    config = configManager.get();
    if (config == null) {
        config = new Config();
    }
    configValidator.setConfig(config);
}
项目:selfoss-android    文件:ArticleActivity.java   
@AfterInject
protected void init() {
    getWindow().requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
    actionBarBackground = getResources().getDrawable(R.drawable.ab_solid_selfoss);
    actionBarBackground.setAlpha(0);
    getActionBar().setBackgroundDrawable(actionBarBackground);
}
项目:party-reader    文件:MarkdownParser.java   
@AfterInject
protected void init() {
    this.bypass = new Bypass(this.rootContext);
}
项目:party-reader    文件:PreferenceTokenStore.java   
@AfterInject
protected void afterInject() {
    this.preferences = this.context.getSharedPreferences(this.tokenFile, Context.MODE_PRIVATE);
}
项目:party-reader    文件:LoginActivity.java   
@AfterInject
protected void init() {
    this.credentials = this.manager.getCredentials();
    this.helper = this.manager.getClient().getOAuthHelper();
}
项目:Coding-Android    文件:PriorityAdapter.java   
@AfterInject
void initPriorityAdapter() {
    mInflater = LayoutInflater.from(mContext);
}
项目:plen-Scenography_Android    文件:PlenProgramAdapter.java   
@AfterInject
void afterInject() {
    initSubscriptions();
}
项目:plen-Scenography_Android    文件:PlenMotionListAdapter.java   
@AfterInject
void afterInject() {
    initSubscriptions();
}
项目:plen-Scenography_Android    文件:PlenMotionListPagerAdapter.java   
@AfterInject
void afterInject() {
    initSubscriptions();
}
项目:plen-Scenography_Android    文件:Scenography.java   
@AfterInject
void afterInject() {
    mModel = ScenographyModel.create(this);
}
项目:DHK-Recollection    文件:MainActivity.java   
@AfterInject
void afterInject() {
  lbsWallService.setRestErrorHandler(baseRestClientErrorHandling);
}
项目:mcm    文件:SlackReporter.java   
@AfterInject
protected void initSlackReporter() {
    EventBus.getDefault().register(this);
}
项目:CodeCamp    文件:BaseRemoteDataSource.java   
@AfterInject public void afterMembersInject() {
    this.mObjectMapper = new ObjectMapper();
    this.afterInject();
}
项目:CodeCamp    文件:AgendaRepository.java   
@AfterInject public void afterMembersInject() {
}
项目:CodeCamp    文件:FavoriteSessions.java   
@AfterInject public void afterMembersInject() {
    this.updateFromPreferences();
}
项目:CodeCamp    文件:MainPresenter.java   
@AfterInject public void afterMembersInject() {
    FragmentManager fm = mMainActivity.getSupportFragmentManager();
    this.mMainPagerAdapter = new MainPagerAdapter(fm, mTabsProvider.getTabsList());
}
项目:CodeCamp    文件:TabsProvider.java   
@AfterInject public void afterMembersInject() {
    this.mTabsList.add(new IMainTab() {
        @Override public String getName() {
            return mContext.getString(R.string.tab_1_name);
        }

        @Override public Fragment getFragment() {
            return SessionsFragment.newInstance();
        }
    });
    this.mTabsList.add(new IMainTab() {
        @Override public String getName() {
            return mContext.getString(R.string.tab_2_name);
        }

        @Override public Fragment getFragment() {
            return FavoritesFragment.newInstance();
        }
    });
    this.mTabsList.add(new IMainTab() {
        @Override public String getName() {
            return mContext.getString(R.string.tab_3_name);
        }

        @Override public Fragment getFragment() {
            return CodecampersFragment.newInstance();
        }
    });
    this.mTabsList.add(new IMainTab() {
        @Override public String getName() {
            return mContext.getString(R.string.tab_name_sponsors);
        }

        @Override public Fragment getFragment() {
            return SponsorsFragment.newInstance();
        }
    });
    this.mTabsList.add(new IMainTab() {
        @Override public String getName() {
            return mContext.getString(R.string.tab_4_name);
        }

        @Override public Fragment getFragment() {
            return AboutFragment.newInstance();
        }
    });
}
项目:CodeCamp    文件:BaseActivity.java   
@AfterInject
@Override public final void afterMembersInject() {
    this.afterInject();
}
项目:CodeCamp    文件:BaseFragment.java   
@AfterInject
@Override public final void afterMembersInject() {
    this.afterInject();
}
项目:chaincloud-v    文件:ChainCloudVApplication.java   
@AfterInject
void initIcons() {
    Iconify.with(new FontAwesomeModule());
    Iconify.with(new BitpieIconFontDescriptor());
}