当前位置: 首页>>代码示例>>Java>>正文


Java WelcomeHelper类代码示例

本文整理汇总了Java中com.stephentuso.welcome.WelcomeHelper的典型用法代码示例。如果您正苦于以下问题:Java WelcomeHelper类的具体用法?Java WelcomeHelper怎么用?Java WelcomeHelper使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


WelcomeHelper类属于com.stephentuso.welcome包,在下文中一共展示了WelcomeHelper类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onActivityResult

import com.stephentuso.welcome.WelcomeHelper; //导入依赖的package包/类
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);

    if (requestCode == WelcomeHelper.DEFAULT_WELCOME_SCREEN_REQUEST) {
        // The key of the welcome screen is in the Intent
        //String welcomeKey = data.getStringExtra(WelcomeActivity.WELCOME_SCREEN_KEY);

        /*if (resultCode == RESULT_OK) {
            // Code here will run if the welcome screen was completed
        } else {
            // Code here will run if the welcome screen was canceled
            // In most cases you'll want to call finish() here
        }*/
        new Preferences(this).setWelcomeShown();
        Intent in = new Intent(this, MainActivity.class);
        startActivity(in);
        finish();
    }

}
 
开发者ID:othreecodes,项目名称:WaJeun,代码行数:22,代码来源:SplashActivity.java

示例2: 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);
    }


}
 
开发者ID:othreecodes,项目名称:WaJeun,代码行数:16,代码来源:SplashActivity.java

示例3: onActivityResult

import com.stephentuso.welcome.WelcomeHelper; //导入依赖的package包/类
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {

    if (requestCode == WelcomeHelper.DEFAULT_WELCOME_SCREEN_REQUEST) {
        new QPreferences(this).setWelcomeShown();

    }
    Log.e("INstead",String.valueOf(requestCode));
    super.onActivityResult(requestCode, resultCode, data);
}
 
开发者ID:othreecodes,项目名称:Quicksend,代码行数:11,代码来源:MainActivity.java

示例4: 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);

}
 
开发者ID:othreecodes,项目名称:Quicksend,代码行数:45,代码来源:MainActivity.java

示例5: ScreenItem

import com.stephentuso.welcome.WelcomeHelper; //导入依赖的package包/类
ScreenItem(int titleRes, int descriptionRes, Class<? extends WelcomeActivity> activityClass, Integer requestCode) {
    this(titleRes, descriptionRes, new WelcomeHelper(MainActivity.this, activityClass), requestCode);
}
 
开发者ID:stephentuso,项目名称:welcome-android,代码行数:4,代码来源:MainActivity.java


注:本文中的com.stephentuso.welcome.WelcomeHelper类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。