Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.util.Log;

public class Main {
    public static void logEx(String tag, String msg, Object who, Exception ex) {
        Log.e(tag, msg + " who " + who + " ptr " + getHashCode(who) + " ex " + ex);
    }

    public static String getHashCode(Object obj) {
        return "0x" + Integer.toHexString(System.identityHashCode(obj));
    }
}