当前位置:网站首页>Auto.js 获取手机所有app名字
Auto.js 获取手机所有app名字
2022-07-06 23:06:00 【宴西笔记】
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; //包名
appicon = resolveInfos.get(i).loadIcon(packageManager); //APP图标 icon
appName = resolveInfos.get(i).loadLabel(packageManager).toString();
name = resolveInfos.get(i).activityInfo.name;
log(appName)
}
QQ群 568523841
边栏推荐
- ClickHouse(03)ClickHouse怎么安装和部署
- 一文搞懂常见的网络I/O模型
- 当 Knative 遇见 WebAssembly
- 【736. Lisp 语法解析】
- The most complete learning rate adjustment strategy in history LR_ scheduler
- Gavin teacher's perception of transformer live class - rasa project actual combat e-commerce retail customer service intelligent business dialogue robot microservice code analysis and dialogue experim
- Markdown编辑器
- Why do many people misunderstand technical debt
- Servicemesh mainly solves three pain points
- Development thoughts of adding new requirements in secondary development
猜你喜欢
随机推荐
A line of R code draws the population pyramid
App embedded H5 --- iPhone soft keyboard blocks input text
第一篇论文的写作流程
leetcode 53. Maximum subarray maximum subarray sum (medium)
U++ 元数据说明符 学习笔记
STM32F103ZE+SHT30检测环境温度与湿度(IIC模拟时序)
Monitoring cannot be started after Oracle modifies the computer name
npm ERR! 400 Bad Request - PUT xxx - “devDependencies“ dep “xx“ is not a valid dependency name
Leetcode minimum difference in student scores
【PHP SPL笔记】
Comparison between thread and runnable in creating threads
Canteen user dish relationship system (C language course design)
Can I specify a path in an attribute to map a property in my class to a child property in my JSON?
《二》标签
装饰器基础学习02
01 machine learning related regulations
史上最全学习率调整策略lr_scheduler
Redis如何实现多可用区?
Ansible overview and module explanation (you just passed today, but yesterday came to your face)
AOSP ~Binder 通信原理 (一) - 概要