Back to project page jive-android-core-sdk-example.
The source code is released under:
Apache License
If you think the Android project jive-android-core-sdk-example listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jivesoftware.example.utils; /*from w w w . j ava2 s .c om*/ import android.content.Context; import android.content.Intent; import javax.inject.Inject; /** * Created by mark.schisler on 8/28/14. */ public class ActivityLauncher { @Inject public ActivityLauncher() {} public void launch(Context context, Class<?> clazz) { Intent intent = new Intent(context, clazz); context.startActivity(intent); } public void launchClearTop(Context context, Class<?> clazz) { Intent intent = new Intent(context, clazz); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); context.startActivity(intent); } }