Giter Site home page Giter Site logo

切换应用的办法 about robothelper HOT 4 CLOSED

jinnrry avatar jinnrry commented on July 28, 2024
切换应用的办法

from robothelper.

Comments (4)

chongkaechin avatar chongkaechin commented on July 28, 2024

暂时用其他方法解决了。
我写了一个回到首页的功能,这样就可以应付我的需求了。

在Robot.java添加这些代码

private static Instrumentation rInst = new Instrumentation();

/**** Home Button ****/
public static void home(){
    rInst.sendKeyDownUpSync(KeyEvent.KEYCODE_HOME);
}

from robothelper.

Jinnrry avatar Jinnrry commented on July 28, 2024

1.切换应用 https://juejin.im/entry/6844903493803704334

2.我觉得你这个需求完全不需要打开gmail,你直接用pop或者imap协议读邮件内容不就行了,这样比你打开gmail读内容健壮多了

from robothelper.

chongkaechin avatar chongkaechin commented on July 28, 2024

关于作者你提的第二点可以有更详细的说明吗,还是有建议的参考资料吗,我对你说的东西不是很了解,谢谢

from robothelper.

Jinnrry avatar Jinnrry commented on July 28, 2024

https://www.liaoxuefeng.com/wiki/1252599548343744/1319099948859426

from robothelper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.