找到您的CPU架构

时间:2018-01-22 06:14:01

标签: android android-ndk cpu-architecture

如何在Android中以编程方式检查处理器ARM,ARM64或x86中的哪一款?

1 个答案:

答案 0 :(得分:1)

if (Login.CheckLoginCredential(user, pwd))
        {
            Guid uuid;
            uuid = Guid.NewGuid();
            Session["uuid"] = uuid;
            FormsAuthentication.SetAuthCookie(uuid.ToString(), false);
            UserService usobject = new UserService();
            bool updatecookie = usobject.updatecookie(user, uuid.ToString());
            if (ispasswordExpired == false)
            {
                Login.makeuserInactive(user);
                TempData["expirymessage"] = "Your password expired. Please change your password.";
            }
            if (Login.checkloginStatus(user))
            {
                return RedirectToAction("Index", "Dashboard");
            }
            else
            {
                return RedirectToAction("ResetPassword", "ResetPassword");
            }
        }
        else
        {
            TempData["Message"] = "Incorrect username or password!";
            return RedirectToAction("Index", "Login");
        }