From 7d2737e54866f33553ee85c546dcea197bffd130 Mon Sep 17 00:00:00 2001 From: Xavier Ducrohet Date: Wed, 7 Mar 2012 17:05:58 -0800 Subject: Update test project to support proguard. The code read java resources using relative path which breaks when the classes and their packages are renamed (the java resource isn't moved to the new package name.) Change-Id: I9b9d14288d8c16fd7342cd743251e5681bb0f1ef --- testapps/basicJar3/src/com/android/tests/basicjar3/BasicJar3.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testapps/basicJar3') diff --git a/testapps/basicJar3/src/com/android/tests/basicjar3/BasicJar3.java b/testapps/basicJar3/src/com/android/tests/basicjar3/BasicJar3.java index 60d021d..684b584 100644 --- a/testapps/basicJar3/src/com/android/tests/basicjar3/BasicJar3.java +++ b/testapps/basicJar3/src/com/android/tests/basicjar3/BasicJar3.java @@ -8,7 +8,7 @@ import java.io.InputStreamReader; public class BasicJar3 { public static String getContent() { - InputStream input = BasicJar3.class.getResourceAsStream("basicJar3.txt"); + InputStream input = BasicJar3.class.getResourceAsStream("/com/android/tests/basicjar3/basicJar3.txt"); if (input == null) { return "FAILED TO FIND basicJar3.txt"; } -- cgit v1.1