aboutsummaryrefslogtreecommitdiff
path: root/testapps/javaProjectTest/app/src/com/android/tests/javaprojecttest/app/Main.java
blob: 51b3228621dbdd5b68dda3c5ac0c3c2ae1741bf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package com.android.tests.javaprojecttest.app;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

import com.android.tests.basicjar.BasicJar;
import com.android.tests.basicjar2.BasicJar2;
import com.android.tests.basicjar3.BasicJar3;
import com.android.tests.javaprojecttest.javaproject.JavaProject;
import com.android.tests.javaprojecttest.javaproject2.JavaProject2;
import com.android.tests.javaprojecttest.javaproject3.JavaProject3;
import com.android.tests.javaprojecttest.lib1.Lib1;
import com.android.tests.javaprojecttest.lib2.Lib2;

public class Main extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        TextView tv = (TextView) findViewById(R.id.app);
        tv.setText("App: " + App.getContent());

        tv = (TextView) findViewById(R.id.lib1);
        tv.setText("Lib1: " + Lib1.getContent());

        tv = (TextView) findViewById(R.id.lib2);
        tv.setText("Lib2: " + Lib2.getContent());

        tv = (TextView) findViewById(R.id.javaProject1);
        tv.setText("JavaProject: " + JavaProject.getContent());

        tv = (TextView) findViewById(R.id.javaProject2);
        tv.setText("JavaProject2: " + JavaProject2.getContent());

        tv = (TextView) findViewById(R.id.javaProject3);
        tv.setText("JavaProject3: " + JavaProject3.getContent());

        tv = (TextView) findViewById(R.id.basicJar);
        tv.setText("BasicJar: " + BasicJar.getContent());

        tv = (TextView) findViewById(R.id.basicJar2);
        tv.setText("BasicJar2: " + BasicJar2.getContent());

        tv = (TextView) findViewById(R.id.basicJar3);
        tv.setText("BasicJar3: " + BasicJar3.getContent());

    }
}