当前位置: 首页>>代码示例>>Java>>正文


Java AfterInject类代码示例

本文整理汇总了Java中org.androidannotations.annotations.AfterInject的典型用法代码示例。如果您正苦于以下问题:Java AfterInject类的具体用法?Java AfterInject怎么用?Java AfterInject使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AfterInject类属于org.androidannotations.annotations包,在下文中一共展示了AfterInject类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: AfterInject

import org.androidannotations.annotations.AfterInject; //导入依赖的package包/类
@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);
}
 
开发者ID:thht,项目名称:ambilike,代码行数:23,代码来源:HueNotification.java

示例2: init

import org.androidannotations.annotations.AfterInject; //导入依赖的package包/类
@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);
}
 
开发者ID:n76,项目名称:wifi_backend,代码行数:23,代码来源:gpsMonitor.java

示例3: init

import org.androidannotations.annotations.AfterInject; //导入依赖的package包/类
@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);
	}
}
 
开发者ID:yDelouis,项目名称:selfoss-android,代码行数:17,代码来源:SelfossImageLoader.java

示例4: afterInject

import org.androidannotations.annotations.AfterInject; //导入依赖的package包/类
@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);
}
 
开发者ID:AlbinoDrought,项目名称:party-reader,代码行数:8,代码来源:Manager.java

示例5: createPaginator

import org.androidannotations.annotations.AfterInject; //导入依赖的package包/类
@AfterInject
protected void createPaginator() {
    this.paginator = new SubredditPaginator(this.manager.getClient());

    if (this.subreddit != null && this.subreddit.length() > 0) {
        this.paginator.setSubreddit(this.subreddit);
    }
}
 
开发者ID:AlbinoDrought,项目名称:party-reader,代码行数:9,代码来源:SubredditActivity.java

示例6: ok

import org.androidannotations.annotations.AfterInject; //导入依赖的package包/类
@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");
}
 
开发者ID:DHK-BAT,项目名称:DHK-Recollection,代码行数:9,代码来源:Main2Activity.java

示例7: initContext

import org.androidannotations.annotations.AfterInject; //导入依赖的package包/类
@AfterInject
void initContext() {
    mContext = getApplicationContext();

    initCoinType();

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

    WorkService_.intent(getApplicationContext()).start();
    SMSServiceImpl_.intent(getApplicationContext()).start();
    AddressService_.intent(getApplicationContext()).start();
}
 
开发者ID:chaincloud-dot-com,项目名称:chaincloud-v,代码行数:15,代码来源:ChainCloudVApplication.java

示例8: init

import org.androidannotations.annotations.AfterInject; //导入依赖的package包/类
@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();
}
 
开发者ID:Orange-OpenSource,项目名称:simiasque,代码行数:10,代码来源:ViewService.java

示例9: init

import org.androidannotations.annotations.AfterInject; //导入依赖的package包/类
@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;
}
 
开发者ID:thht,项目名称:ambilike,代码行数:13,代码来源:HueController.java

示例10: prepareQueries

import org.androidannotations.annotations.AfterInject; //导入依赖的package包/类
@AfterInject
void prepareQueries() {
    try {
        songInDbQuery = songDao.queryBuilder().where().eq("fullPath", fullPathArg).prepare();
    }
    catch (SQLException se) {
        throw new RuntimeException(se);
    }
}
 
开发者ID:egueli,项目名称:ETStreamHome,代码行数:10,代码来源:MusicScanner.java

示例11: init

import org.androidannotations.annotations.AfterInject; //导入依赖的package包/类
@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();
}
 
开发者ID:Brightify,项目名称:autoamplifier,代码行数:15,代码来源:Amplifier.java

示例12: addCallbacks

import org.androidannotations.annotations.AfterInject; //导入依赖的package包/类
@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());
    }
}
 
开发者ID:Allsimon,项目名称:Alldebrid,代码行数:13,代码来源:MyActivity.java

示例13: setupBuilder

import org.androidannotations.annotations.AfterInject; //导入依赖的package包/类
@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);
}
 
开发者ID:jsettlers,项目名称:settlers-remake,代码行数:11,代码来源:NotificationBuilder.java

示例14: init

import org.androidannotations.annotations.AfterInject; //导入依赖的package包/类
@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) {
        }
    });
}
 
开发者ID:praetoriandroid,项目名称:sony-camera-remote-java,代码行数:16,代码来源:SelfTimerSelector.java

示例15: afterInject

import org.androidannotations.annotations.AfterInject; //导入依赖的package包/类
@AfterInject
protected void afterInject() {
    client.setRestErrorHandler(new RestErrorHandler() {
        @Override
        public void onRestClientExceptionThrown(NestedRuntimeException e) {
            //show Toast and Reload button
            loadClientData();
        }
    });
}
 
开发者ID:jarvislin,项目名称:Produce-Price-Checker,代码行数:11,代码来源:DataLoader.java


注:本文中的org.androidannotations.annotations.AfterInject类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。