本文整理汇总了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);
}
示例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);
}
示例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);
}
}
示例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);
}
示例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);
}
}
示例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");
}
示例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();
}
示例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();
}
示例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;
}
示例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);
}
}
示例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();
}
示例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());
}
}
示例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);
}
示例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) {
}
});
}
示例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();
}
});
}