本文整理汇总了Java中com.stephentuso.welcome.WelcomeHelper.show方法的典型用法代码示例。如果您正苦于以下问题:Java WelcomeHelper.show方法的具体用法?Java WelcomeHelper.show怎么用?Java WelcomeHelper.show使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.stephentuso.welcome.WelcomeHelper
的用法示例。
在下文中一共展示了WelcomeHelper.show方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: animationsFinished
import com.stephentuso.welcome.WelcomeHelper; //导入方法依赖的package包/类
@Override
public void animationsFinished() {
if(new Preferences(this).isWelcomeShown()){
//welcome screen already shown.... load main activity
Intent in= new Intent(this,MainActivity.class);
startActivity(in);
finish();
}else{
WelcomeHelper welcomeHelper= new WelcomeHelper(this,WelcomeActivity.class);
welcomeHelper.show(null);
}
}
示例2: onCreate
import com.stephentuso.welcome.WelcomeHelper; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if(new QPreferences(this).isWelcomeShown()){
}else{
WelcomeHelper welcomeHelper= new WelcomeHelper(this,WelcomeActivity.class);
welcomeHelper.show(null);
}
Intent n = getIntent();
if(n.getAction()!=null) {
if (!n.getAction().equals("android.intent.action.MAIN")) {
try {
this.recievedEmail = n.getDataString().substring(7);
} catch (Exception e) {
}
}
}
setContentView(R.layout.activity_main);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setHomeAsUpIndicator(R.mipmap.ic_launcher);
BottomNavigationView navigation = (BottomNavigationView) findViewById(R.id.navigation);
navigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener);
FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
transaction.replace(R.id.content, HomeFragment.newInstance(recievedEmail));
transaction.commit();
permissionAsk();
// Obtain the FirebaseAnalytics instance.
mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);
Bundle bundle = new Bundle();
bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, "App opened");
bundle.putString(FirebaseAnalytics.Param.VALUE, new Date().toString());
mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);
}