本文整理汇总了Java中com.honu.aloha.WelcomeHelper类的典型用法代码示例。如果您正苦于以下问题:Java WelcomeHelper类的具体用法?Java WelcomeHelper怎么用?Java WelcomeHelper使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
WelcomeHelper类属于com.honu.aloha包,在下文中一共展示了WelcomeHelper类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: maybeShowWelcomeActivity
import com.honu.aloha.WelcomeHelper; //导入依赖的package包/类
private void maybeShowWelcomeActivity() {
// NOTE: uncomment to force display of welcome activity for testing
//WelcomeHelper.setAlwaysShowWelcome(true);
if (WelcomeHelper.isWelcomeRequired(this)) {
startActivity(new Intent(MainActivity.this, WelcomeActivity.class));
overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
}
}
示例2: maybeShowWelcomeActivity
import com.honu.aloha.WelcomeHelper; //导入依赖的package包/类
private void maybeShowWelcomeActivity() {
// FOR TESTING ONLY: resetting the versionCode will FORCE the welcome activity to display every time
WelcomeHelper.clearLastRunVersionCode(this);
if (WelcomeHelper.isWelcomeRequired(this)) {
startActivity(new Intent(MainActivity.this, WelcomeActivity.class));
overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
}
}