• 大小: 206KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-03
  • 语言: Java
  • 标签: 微信红包  

资源简介

android微信自动抢红包源码,请谨慎使用,目前测试android8.0没问题,9.0和10.0没测试需要的话去github看看,如果觉得不值,可不下载

资源截图

代码片段和文件信息

package xyz.monkeytong.hongbao.activities;

import android.accessibilityservice.AccessibilityServiceInfo;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.provider.Settings;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.accessibility.AccessibilityManager;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import com.tencent.bugly.Bugly;
import xyz.monkeytong.hongbao.R;
import xyz.monkeytong.hongbao.utils.ConnectivityUtil;
import xyz.monkeytong.hongbao.utils.UpdateTask;

import java.util.List;


public class MainActivity extends Activity implements AccessibilityManager.AccessibilityStateChangeListener {

    //开关切换按钮
    private TextView pluginStatusText;
    private ImageView pluginStatusIcon;
    //AccessibilityService 管理
    private AccessibilityManager accessibilityManager;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //CrashReport.initCrashReport(getApplicationContext() “900019352“ false);
        Bugly.init(getApplicationContext() “900019352“ false);
        setContentView(R.layout.activity_main);
        pluginStatusText = (TextView) findViewById(R.id.layout_control_accessibility_text);
        pluginStatusIcon = (ImageView) findViewById(R.id.layout_control_accessibility_icon);

        handleMaterialStatusBar();

        explicitlyLoadPreferences();

        //监听AccessibilityService 变化
        accessibilityManager = (AccessibilityManager) getSystemService(Context.ACCESSIBILITY_SERVICE);
        accessibilityManager.addAccessibilityStateChangeListener(this);
        updateServiceStatus();
    }

    private void explicitlyLoadPreferences() {
        PreferenceManager.setDefaultValues(this R.xml.general_preferences false);
    }

    /**
     * 适配MIUI沉浸状态栏
     */
    @TargetApi(Build.VERSION_CODES.LOLLIPOP)
    private void handleMaterialStatusBar() {
        // Not supported in APK level lower than 21
        if (android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) return;

        Window window = this.getWindow();

        window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);

        window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);

        window.setStatusBarColor(0xffE46C62);

    }

    @Override
    protected void onPause() {
        super.onPause();
    }

    @Override
    protected void onResume() {
        super.onResume();

        updateServiceStatus();
        // Check for update when WIFI is connected or on first time.
        if (ConnectivityUtil.isWifi(this) || UpdateTask.count == 0)
            new UpdateTask(this false).update();
    }

    @Override
    protected void onDestroy() {
     

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\
     文件         146  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\.gitignore
     目录           0  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\.idea\
     文件         686  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\.idea\compiler.xml
     目录           0  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\.idea\copyright\
     文件          74  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\.idea\copyright\profiles_settings.xml
     文件         159  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\.idea\encodings.xml
     文件         753  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\.idea\gradle.xml
     目录           0  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\.idea\inspectionProfiles\
     文件         269  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\.idea\inspectionProfiles\Project_Default.xml
     文件        1753  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\.idea\misc.xml
     文件         369  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\.idea\modules.xml
     文件         564  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\.idea\runConfigurations.xml
     文件        8792  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\.idea\uiDesigner.xml
     文件         180  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\.idea\vcs.xml
     文件        1791  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\.travis.yml
     文件        5080  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\CHANGELOG.md
     文件        1139  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\LICENSE.md
     文件        3069  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\README.md
     文件        2819  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\README_EN.md
     文件         893  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\WeChatLuckyMoney.iml
     目录           0  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\app\
     文件         451  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\app\.gitignore
     文件       10079  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\app\app.iml
     文件        1656  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\app\build.gradle
     文件         762  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\app\proguard-rules.pro
     目录           0  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\app\src\
     目录           0  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\app\src\main\
     文件        2792  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\app\src\main\AndroidManifest.xml
     目录           0  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\app\src\main\java\
     目录           0  2018-04-14 03:08  WeChatLuckyMoney-5.0.1\app\src\main\java\xyz\
............此处省略67个文件信息

评论

共有 条评论