当前位置:网站首页>Auto. JS get all app names of mobile phones
Auto. JS get all app names of mobile phones
2022-07-07 05:09:00 【Banquet notes】
intent = new Intent();
intent.setAction(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
packageManager = context.getPackageManager();
resolveInfos = packageManager.queryIntentActivities(intent, 0);
for(var i=0;i<resolveInfos.size();i++){
packageName = resolveInfos.get(i).activityInfo.packageName; // Package name
appicon = resolveInfos.get(i).loadIcon(packageManager); //APP Icon icon
appName = resolveInfos.get(i).loadLabel(packageManager).toString();
name = resolveInfos.get(i).activityInfo.name;
log(appName)
}
QQ Group 568523841
边栏推荐
- STM32F103实现IAP在线升级应用程序
- STM32 encapsulates the one key configuration function of esp8266: realize the switching between AP mode and sta mode, and the creation of server and client
- Redis如何实现多可用区?
- STM32F103ZE+SHT30检测环境温度与湿度(IIC模拟时序)
- Ansible报错:“msg“: “Invalid/incorrect password: Permission denied, please try again.“
- JS variable
- 01机器学习相关规定
- 【Android Kotlin协程】利用CoroutineContext实现网络请求失败后重试逻辑
- Clickhouse (03) how to install and deploy Clickhouse
- How to design API interface and realize unified format return?
猜你喜欢
Dynamically generate tables
[736. LISP syntax parsing]
Operand of null-aware operation ‘!‘ has type ‘SchedulerBinding‘ which excludes null.
使用知云阅读器翻译统计遗传学书籍
Basic knowledge of road loss of 3GPP channel model
Weebly mobile website editor mobile browsing New Era
Why do many people misunderstand technical debt
window定时计划任务
一个酷酷的“幽灵”控制台工具
SQL injection cookie injection
随机推荐
Batch normalization (Standardization) processing
STM32F103ZE+SHT30检测环境温度与湿度(IIC模拟时序)
Clickhouse (03) how to install and deploy Clickhouse
最长公共子序列(LCS)(动态规划,递归)
一个酷酷的“幽灵”控制台工具
Techniques d'utilisation de sublime
Monitoring cannot be started after Oracle modifies the computer name
File upload vulnerability summary
腾讯云数据库公有云市场稳居TOP 2!
y58.第三章 Kubernetes从入门到精通 -- 持续集成与部署(三一)
Stm32f103ze+sht30 detection of ambient temperature and humidity (IIC simulation sequence)
为什么很多人对技术债务产生误解
【最佳网页宽度及其实现】「建议收藏」
Time complexity & space complexity
【愚公系列】2022年7月 Go教学课程 005-变量
The execution order of return in JS' try catch finally
[736. LISP syntax parsing]
想要选择一些部门优先使用 OKR, 应该如何选择试点部门?
全链路压测:影子库与影子表之争
谈谈讲清楚这件事的重要性