Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
// Use of this source code is governed by a BSD-style license that can be

import android.annotation.SuppressLint;
import android.content.Context;

import android.provider.Settings;

public class Main {
    @SuppressLint("NewApi")
    private static String getDebugAppJBMR1(Context context) {
        boolean adbEnabled = Settings.Global.getInt(context.getContentResolver(), Settings.Global.ADB_ENABLED,
                0) == 1;
        if (adbEnabled) {
            return Settings.Global.getString(context.getContentResolver(), Settings.Global.DEBUG_APP);
        }
        return null;
    }
}