当前位置:网站首页>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
边栏推荐
- Development thoughts of adding new requirements in secondary development
- HarmonyOS第四次培训
- 想要选择一些部门优先使用 OKR, 应该如何选择试点部门?
- [736. LISP syntax parsing]
- Error: No named parameter with the name ‘foregroundColor‘
- 腾讯云数据库公有云市场稳居TOP 2!
- How to choose an offer and what factors should be considered
- ASP. Net MVC - resource cannot be found error - asp Net MVC – Resource Cannot be found error
- Ansible中的inventory主機清單(預祝你我有數不盡的鮮花和浪漫)
- 3.基金的类型
猜你喜欢
Basic knowledge of road loss of 3GPP channel model
Ansible overview and module explanation (you just passed today, but yesterday came to your face)
拿到PMP认证带来什么改变?
torch optimizer小解析
Batch normalization (Standardization) processing
sublime使用技巧
【愚公系列】2022年7月 Go教学课程 005-变量
LabVIEW在打开一个新的引用,提示内存已满
记录一次压测经验总结
U++ 元数据说明符 学习笔记
随机推荐
C语言中函数指针与指针函数
Auto.js 获取手机所有app名字
Flask项目使用flask-socketio异常:TypeError: function() argument 1 must be code, not str
Decorator basic learning 02
National meteorological data / rainfall distribution data / solar radiation data /npp net primary productivity data / vegetation coverage data
【PHP SPL笔记】
Ansible reports an error: "MSG": "invalid/incorrect password: permission denied, please try again“
STM32F103ZE+SHT30检测环境温度与湿度(IIC模拟时序)
STM32 system timer flashing LED
全链路压测:影子库与影子表之争
想要选择一些部门优先使用 OKR, 应该如何选择试点部门?
最全常用高数公式
Weebly mobile website editor mobile browsing New Era
Dynamically generate tables
批量归一化(标准化)处理
Mysql database (basic)
装饰器基础学习02
File upload vulnerability summary
【Android Kotlin协程】利用CoroutineContext实现网络请求失败后重试逻辑
Clickhouse (03) how to install and deploy Clickhouse