summaryrefslogtreecommitdiffstats
path: root/src/java/jogamp/android/launcher/TraceDexClassLoader.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/jogamp/android/launcher/TraceDexClassLoader.java')
-rw-r--r--src/java/jogamp/android/launcher/TraceDexClassLoader.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/java/jogamp/android/launcher/TraceDexClassLoader.java b/src/java/jogamp/android/launcher/TraceDexClassLoader.java
new file mode 100644
index 0000000..0b00489
--- /dev/null
+++ b/src/java/jogamp/android/launcher/TraceDexClassLoader.java
@@ -0,0 +1,27 @@
+package jogamp.android.launcher;
+
+import java.net.URL;
+
+import android.util.Log;
+
+import dalvik.system.DexClassLoader;
+
+public class TraceDexClassLoader extends DexClassLoader {
+ private static final boolean DEBUG = false;
+
+ public TraceDexClassLoader(String dexPath, String dexOutputDir, String libPath, ClassLoader parent) {
+ super(dexPath, dexOutputDir, libPath, parent);
+ if(DEBUG) {
+ Log.d(TraceDexClassLoader.class.getSimpleName(), "ctor: dexPath " + dexPath + ", dexOutputDir " + dexOutputDir + ", libPath " + libPath + ", parent " + parent);
+ }
+ }
+
+ @Override
+ public URL findResource(String name) {
+ final URL url = super.findResource(name);
+ if(DEBUG) {
+ Log.d(TraceDexClassLoader.class.getSimpleName(), "findResource: " + name + " -> " + url);
+ }
+ return url;
+ }
+}