android - 通过 Android Studio 发送 shell 命令或类似于正在运行的 android 应用程序的东西
问题描述
给定一个具有一些公共功能的应用程序。当应用程序通过我写入android studio的一些输入运行时,我如何调用这些函数。也许是某种贝壳?
fun foo1() = doesSomeFoo1()
fun foo2() = doesSomeFoo2()
fun foo3() = doesSomeFoo3()
...
//this runs every 2 seonds somewhere or when it gets notified that this kind of input was recieved
when (someInputBufferOrSomething.recievedInputFromAndroidStudio) {
"execute foo1" -> foo1()
"execute foo2" -> foo2()
"execute foo3" -> foo3()
}
解决方案
推荐阅读
- docker - ddev:“无法运行 docker-compose ...”错误
- shell - 如何通过 shell 删除每个 dn 会话中的重复条目
- javascript - 如何将mysql结果写入变量?
- r - 如何对一列值求和并按另一列的间隔对它们进行分组
- typescript - 如何使用打字稿在exitants API上定义通用响应类型
- java - Firestore:获取文档中的对象数组
- ssh - Ubuntu 20:04 DO droplet 上的 ufw 怪异——我不明白为什么允许/拒绝 tcp/22 会影响所有其他端口
- oracle - 为什么 NVL 在 Oracle 中通过 COALESCE 工作?
- 68000 - How to dissassemble a MOVEM instruction in 68k using the register list mask field?
- reactjs - Tailwindcss @layer 指令在 ReactJS/ViteJS 项目中不起作用