ActivityManager.with(SampleActivity.this, ActivityParam.ActivityType.START)
.klass(SampleActivity.class)
.activityCompactOption(activityCompatOption)
.bundle(bundle)
.flag(Intent.FLAG_ACTIVITY_NEW_TASK)
.build();
ActivityManager.with(SampleActivity.this, ActivityParam.ActivityType.START_RESULT)
.klass(SampleActivity.class)
.activityCompactOption(activityCompatOption)
.bundle(bundle)
.requestCode(100)
.build();
ActivityManager.with(SampleActivity.this, ActivityParam.ActivityType.FINISH)
.build();
FragmentManager.with(this,R.id.replaceId)
.animation(enter,exit,popEnter,popExit)
.backStack(true)
.enableAnimation(true)
.fragment(fragToOpen)
.tag(FragmentTag)
.type(FragParam.FragType.REPLACE)
.build();
If Connectivity Changes automatic notified under OnConnectivityChanges
but for this need to add BaseApplication
in your manifest
public class SampleActivity extends BaseAppCompatActivity{
@Override
protected void initUI() {
setContentView(R.layout.activity_sample);
}
@Override
public void onConnectivityChange(boolean isConnectivity) {
super.onConnectivityChange(isConnectivity);
Log.i(getLocalClassName(), "onConnectivityChange = " + isConnectivity);
}
}
enableOnActivityResultFragment(true)
LanguageContextWrapper.wrap(this, "en", true);
Add the JitPack repository to your root build.gradle:
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
Add the Gradle dependency:
dependencies {
compile 'com.github.amitclickapps:image-util:latest'
}