Java Code Examples for com.umeng.analytics.MobclickAgent#onProfileSignIn()

The following examples show how to use com.umeng.analytics.MobclickAgent#onProfileSignIn() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LoginActivity.java    From SmallGdufe-Android with GNU General Public License v3.0 6 votes vote down vote up
@OnClick(R.id.login_tv_schoolmate) void schoolmateLogin() {
    long curTimes = System.currentTimeMillis();
    if( (curTimes - oldClickLoginTimes)/1000 <= 2){
        Toast.makeText(this, "稍等,不要频繁登陆", Toast.LENGTH_SHORT).show();
        return;
    }
    oldClickLoginTimes = curTimes;

    AppConfig.sno = AppConfig.schoolmateSno;
    AppConfig.idsPwd = AppConfig.jwPwd = AppConfig.schoolmatePwd;

    FileUtils.setStoredAccount(LoginActivity.this, new UserAccount(AppConfig.sno, AppConfig.idsPwd, AppConfig.jwPwd));
    AppConfig.defaultPage = AppConfig.DefaultPage.HOME; //默认首页为课表
    MobclickAgent.onProfileSignIn(sno);//友盟统计用户信息
    startActivity(new Intent(LoginActivity.this, MainActivity.class));
    LoginActivity.this.finish();
}
 
Example 2
Source File: AccountController.java    From nono-android with GNU General Public License v3.0 5 votes vote down vote up
private static void rightAfterLogOn(){
    SeriesLogOnInfo.putInfo(MyApp.getInstance().getApplicationContext(), MyApp.userInfo.username, MyApp.userInfo.userpassword);
    EMClient.getInstance().login(MyApp.userInfo.userId,SHA1(MyApp.userInfo.userpassword) ,new EMCallBack() {//回调
        @Override
        public void onSuccess() {
            new Handler(Looper.getMainLooper()).post(new Runnable() {
                @Override
                public void run() {
                    EMClient.getInstance().groupManager().loadAllGroups();
                    EMClient.getInstance().chatManager().loadAllConversations();
                    Log.d("main", "登陆聊天服务器成功!");
                }
            });
        }
        @Override
        public void onProgress(int progress, String status) {

        }
        @Override
        public void onError(int code, String message) {
            Log.d("main", "登陆聊天服务器失败!");
        }
    });
    MobclickAgent.onProfileSignIn(MyApp.userInfo.userId);
    NoteController.iniCloudSyncTask();
    ServiceFactory.getAccountService().getAllNote(AuthBody.getAuthBodyMap())
            .subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread())
            .subscribe(new Action1<AuthorBean>() {
                @Override
                public void call(AuthorBean authorBean) {
                    MyApp.getInstance().authorBean.author = authorBean.author;
                }
            }, new Action1<Throwable>() {
                @Override
                public void call(Throwable throwable) {
                }
            });
}
 
Example 3
Source File: FlutterUmengAnalyticsPlugin.java    From flutter_umeng_analytics with MIT License 4 votes vote down vote up
public void loginPageView(MethodCall call, Result result) {
    MobclickAgent.onProfileSignIn((String) call.argument("id"));
    // Session间隔时长,单位是毫秒,默认Session间隔时间是30秒,一般情况下不用修改此值
    MobclickAgent.setSessionContinueMillis((Long) call.argument("interval"));
}
 
Example 4
Source File: MainActivity.java    From NewFastFrame with Apache License 2.0 4 votes vote down vote up
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    MobclickAgent.onProfileSignIn(UserManager.getInstance().getCurrentUserObjectId());
}
 
Example 5
Source File: UmengUtil.java    From UmengUtil with Apache License 2.0 4 votes vote down vote up
public static void onProfileSignIn(String ID) {
    MobclickAgent.onProfileSignIn(ID);
}
 
Example 6
Source File: UmengUtil.java    From UmengUtil with Apache License 2.0 4 votes vote down vote up
public static void onProfileSignIn(String provider, String ID) {
    MobclickAgent.onProfileSignIn(provider,ID);
}