@Override public void onCreate() { super.onCreate(); Binder.init(this); ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(getApplicationContext()) .threadPriority(Thread.NORM_PRIORITY - 2) .denyCacheImageMultipleSizesInMemory() .diskCacheFileNameGenerator(new Md5FileNameGenerator()) .diskCacheSize(50 * 1024 * 1024) // 50 Mb .tasksProcessingOrder(QueueProcessingType.LIFO) .writeDebugLogs() // Remove for release app .build(); // Initialize ImageLoader with configuration. ImageLoader.getInstance().init(config); }
@Override public void onCreate() { super.onCreate(); Binder.init(this); }
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewModel vm = new ProfileViewModel(this); Binder.init(this.getApplication()); Binder.setAndBindContentView(this, R.layout.profile, vm); }