谷歌宣布,目前有30亿台活跃的安卓设备,再次炫耀它是世界上使用最广泛的操作系统。
谷歌在其年度谷歌IO开发者大会上宣布了这一里程碑,该大会的重点是开发Android应用程序、AI和Chrome应用程序的开发者。
随着30亿台安卓设备的普及,谷歌保持了对苹果公司的领先优势,苹果公司在1月份发布了https://www.zdnet.com/article/apple-fiscal-q1-revenue-profit/“>报告有16.5亿台iOS和macOS设备处于活动状态 – 一年前的14亿。
2008年推出安卓系统的谷歌报告称 2019年,它的活跃Android设备达到250万台,因此在过去两年中增长了约5亿台。由于流感大流行,它取消了去年的IO会议,因此没有提供最新消息。
请参见:管理和故障排除Android设备清单(TechRepublic高级版)
4月微软宣布每月有13亿台Windows 10设备处于活动状态,一年前,该公司实现了其逾期两年的10亿台目标,不过,由于流感大流行以及家庭教育和在家工作所需笔记本电脑的大量购买,该公司的增长令人印象深刻。
2017年,谷歌称Androidhttps://www.cnet.com/news/google-boasts-2-billion-active-android-devices/“target=”\u blank“rel=”noopener noreferrer“data component=”externalLink“>已达到20亿活跃用户;2014年,该公司表示https://www.zdnet.com/article/google-io-android-stands-at-one-billion-active-users-and-counting/“>10亿Android活跃用户,这意味着谷歌在过去六年中Android用户基数增加了两倍。
尽管现在连接到Google Play的Android设备数量是连接到App Store的iOS设备数量的两倍,但苹果全球芯片短缺是一个比所有人都意识到的更大的问题。它还将持续更长的时间
有一个新的隐私控制面板,可以24小时查看对位置、麦克风和摄像头的访问。在Android 12中,用户将实时知道应用程序何时访问设备的麦克风或摄像头。开发者需要让用户在访问这些传感器之前先点击。
谷歌还为Android 12用户提供了一个摄像头和麦克风的开关,当他们选择时可以切断应用程序的访问。用户还可以清楚地选择与应用程序共享位置数据的精确程度。与iOS一样,Android 12会在每次应用程序从剪贴板读取数据时通知用户。
Android平台产品的产品经理Sara N-Marandi说:“Android 12是我们迄今为止最雄心勃勃的隐私版本。”,“pageType”:“article”}>Google:我们将在本世纪末建造这台“有用的”量子计算机
供应链黑客攻击:政府着眼于加强安全的新规则
a, .nav-item > a, .dropdown-menu a');
allLinks.forEach(link => {
let href = link.getAttribute('href');
if (!href || href === '#' || href === 'javascript:;') return;
// 4. 提取菜单中的核心路径
// 例如 /articles.html -> articles
let cleanHref = href.replace(/^\/|\/$/g, '').replace(/\.(html|php)$/, '').toLowerCase();
let isMatch = false;
// 5. 精确匹配逻辑
if (cleanHref === 'index') {
// 只有当前是首页时,才高亮首页
if (cleanPath === 'index') isMatch = true;
} else {
// 如果当前路径完全等于菜单路径 (如 /articles 匹配 /articles)
// 或者当前路径以 "菜单路径/" 开头 (如 /articles/154 匹配 /articles)
// 或者当前路径包含 "菜单路径." (防某些带点号的特殊情况)
if (cleanPath === cleanHref || cleanPath.startsWith(cleanHref + '/')) {
isMatch = true;
}
}
// 6. 如果匹配成功,加上高亮
if (isMatch) {
link.classList.add('active');
// 如果匹配的是下拉菜单里的子项,顺便把它的父级分类也高亮
const parentNavItem = link.closest('.nav-item');
if (parentNavItem && !parentNavItem.classList.contains('active')) {
const parentLink = parentNavItem.querySelector('a');
if (parentLink) parentLink.classList.add('active');
}
}
});
})();
// ================= 移动端菜单逻辑 =================
const toggle = document.getElementById("menuToggle");
const nav = document.getElementById("navLinks");
// 1. 汉堡按钮:切换主菜单显示/隐藏
if (toggle && nav) {
toggle.addEventListener("click", function (e) {
e.stopPropagation();
const expanded = this.getAttribute("aria-expanded") === "true";
this.setAttribute("aria-expanded", String(!expanded));
nav.classList.toggle("active");
});
}
// 2. 处理下拉子菜单的展开/折叠
if (window.innerWidth <= 768) {
const navItems = document.querySelectorAll(".nav-item");
navItems.forEach((item) => {
const titleLink = item.querySelector("a");
const dropdownMenu = item.querySelector(".dropdown-menu");
const arrowIcon = item.querySelector(".arrow-icon");
if (titleLink && dropdownMenu) {
titleLink.addEventListener("click", function (e) {
e.preventDefault(); // 阻止链接跳转
e.stopPropagation();
// 手风琴效果:收起其他已展开的菜单
navItems.forEach((otherItem) => {
if (otherItem !== item) {
const otherMenu = otherItem.querySelector(".dropdown-menu");
const otherArrow = otherItem.querySelector(".arrow-icon");
if (otherMenu) otherMenu.classList.remove("active");
if (otherArrow) otherArrow.style.transform = "rotate(0)";
}
});
// 切换当前菜单
dropdownMenu.classList.toggle("active");
if (arrowIcon) {
arrowIcon.style.transform = dropdownMenu.classList.contains(
"active",
)
? "rotate(180deg)"
: "rotate(0)";
}
});
}
});
}
// 3. 点击普通菜单项后,自动关闭整个主菜单
if (nav) {
nav.querySelectorAll("a").forEach(function (link) {
if (!link.querySelector(".arrow-icon")) {
link.addEventListener("click", function () {
nav.classList.remove("active");
if (toggle) toggle.setAttribute("aria-expanded", "false");
});
}
});
}
// ================= 返回顶部逻辑 =================
(function () {
const backToTop = document.getElementById("backToTop");
window.addEventListener("scroll", function () {
if (window.scrollY > 300) {
backToTop.classList.add("show");
} else {
backToTop.classList.remove("show");
}
});
backToTop.addEventListener("click", function () {
window.scrollTo({ top: 0, behavior: "smooth" });
});
})();
// 多语言
document.addEventListener("DOMContentLoaded", function() {
let path = window.location.pathname;
let isEn = path.startsWith('/en/');
if (isEn) {
document.cookie = "my_lang=en; path=/; max-age=" + (30 * 24 * 3600);
} else {
document.cookie = "my_lang=zh; path=/; max-age=" + (30 * 24 * 3600);
}
// 【2. 首页记忆】如果访问的是首页(没带 en),但记忆是英文,前端自动跳去英文首页
if (!isEn && (path === '/' || path === '/index.html')) {
if (document.cookie.includes('my_lang=en')) {
window.location.replace('/en' + path);
return;
}
}
// 【3. 菜单不掉线】如果是英文页面,自动给菜单链接加上 /en/
if (isEn) {
document.querySelectorAll('a').forEach(function(link) {
let href = link.getAttribute('href');
// 站内链接,且没带 /en/
if (href && href.startsWith('/') && !href.startsWith('/en/') && !href.startsWith('http')) {
link.setAttribute('href', '/en' + href);
}
});
}
});