导航菜单

页面标题

页面副标题

i.BarIS v2024.401.30.180 - MainActivity.java 源代码

正在查看: i.BarIS v2024.401.30.180 应用的 MainActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package sk.kaso.ibaris;

import android.content.IntentFilter;
import android.os.Bundle;
import org.apache.cordova.CordovaActivity;

public class MainActivity extends CordovaActivity {
    public static boolean isInFg = false;

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        Bundle extras = getIntent().getExtras();
        if (extras != null && extras.getBoolean("cdvStartInBackground", false)) {
            moveTaskToBack(true);
        }
        loadUrl(this.launchUrl);
        IntentFilter intentFilter = new IntentFilter();
        intentFilter.addAction("reader_action");
        intentFilter.addCategory("reader_category");
        registerReceiver(new DatalogicDataReceiver(), intentFilter);
    }

    @Override
    protected void onResume() {
        super.onResume();
        isInFg = true;
    }

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