aboutsummaryrefslogtreecommitdiff
path: root/tests/flavors/src/main/java/com/android/tests/flavors/MainActivity.java
blob: d768e1ed8741e5bf8f528844cc69af4641314bf7 (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
package com.android.tests.flavors;

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

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

        TextView tv;

        tv = (TextView) findViewById(R.id.buildconfig1);
        tv.setText(BuildConfig.FLAVOR1);

        tv = (TextView) findViewById(R.id.buildconfig2);
        tv.setText(BuildConfig.FLAVOR2);

        tv = (TextView) findViewById(R.id.codeoverlay1);
        tv.setText(com.android.tests.flavors.group1.SomeClass.getString());

        tv = (TextView) findViewById(R.id.codeoverlay2);
        tv.setText(com.android.tests.flavors.group2.SomeClass.getString());
    }
}