Giter Site home page Giter Site logo

nobellcq / ashelp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from boatt/ashelp

0.0 1.0 0.0 3.41 MB

无障碍自动点击方案,类似豹来电嗨来电,自动授权权限(悬浮窗,锁屏显示,修改系统设置,自启动,通知栏)

License: Apache License 2.0

Java 100.00%

ashelp's Introduction

阅后价值

public static AccessibilityServiceMonitor getInstance() {
        //什么时候需要双重检测
        if (mAccessibilityServiceMonitor == null) {
            //抛出异常的方式
            throw new NullPointerException("AblService辅助服务未开启");
        }
        return mAccessibilityServiceMonitor;
    }
	
 //为什么还要赋值一遍?
    @Override
    public void onCreate() {
        mAccessibilityServiceMonitor = this;
    }
     @Override
    public void onServiceConnected() {
        super.onServiceConnected();
        //setServiceInfo();这个方法同样可以实现xml中的配置信息
        //可以做一些开启后的操作比如点两下返回
        //再次赋值有必要吗?
        mAccessibilityServiceMonitor = this;
    }	
    @Override
    public boolean onUnbind(Intent intent) {
        Log.d(TAG, "onUnbind: ");
        //关闭服务时,调用
        //如果有资源记得释放
        return super.onUnbind(intent);
    }

但是都很少看到对node对回收操作

bean类实在太麻烦,尽快转向getter、setter

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.