aboutsummaryrefslogtreecommitdiff
path: root/testapps/libsTest/app/src/com/android/tests/libstest/app/App.java
diff options
context:
space:
mode:
Diffstat (limited to 'testapps/libsTest/app/src/com/android/tests/libstest/app/App.java')
-rw-r--r--testapps/libsTest/app/src/com/android/tests/libstest/app/App.java43
1 files changed, 0 insertions, 43 deletions
diff --git a/testapps/libsTest/app/src/com/android/tests/libstest/app/App.java b/testapps/libsTest/app/src/com/android/tests/libstest/app/App.java
deleted file mode 100644
index 54e2a09de..000000000
--- a/testapps/libsTest/app/src/com/android/tests/libstest/app/App.java
+++ /dev/null
@@ -1,43 +0,0 @@
-package com.android.tests.libstest.app;
-
-import android.app.Activity;
-import android.widget.TextView;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-
-public class App {
-
- public static void handleTextView(Activity a) {
- TextView tv = (TextView) a.findViewById(R.id.app_text2);
- if (tv != null) {
- tv.setText(getContent());
- }
- }
-
- private static String getContent() {
- InputStream input = App.class.getResourceAsStream("App.txt");
- if (input == null) {
- return "FAILED TO FIND App.txt";
- }
-
- BufferedReader reader = null;
- try {
- reader = new BufferedReader(new InputStreamReader(input, "UTF-8"));
-
- return reader.readLine();
- } catch (IOException e) {
- } finally {
- if (reader != null) {
- try {
- reader.close();
- } catch (IOException e) {
- }
- }
- }
-
- return "FAILED TO READ CONTENT";
- }
-}