Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.util.Log;

import android.view.accessibility.AccessibilityNodeInfo;

public class Main {
    private static final String LOGTAG = "AccessibilityNodeInfoHelper";

    public static void dumpNode(AccessibilityNodeInfo node) {
        Log.d(LOGTAG, String.format("class: %s; text: %s; content-desc: %s", node.getClassName(), node.getText(),
                node.getContentDescription()));
    }
}