aboutsummaryrefslogtreecommitdiff
path: root/testapps/buildConfigTest/app/src/com/android/tests/buildconfigtest/Main.java
blob: 6421c60ed7c2113e497e944d03aeaf0383c94ed0 (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
package com.android.tests.buildconfigtest;

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

import com.android.tests.buildconfigtest.lib1.Lib1;

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);

        if (BuildConfig.DEBUG) {
            TextView tv = (TextView) findViewById(R.id.app);
            tv.setText("App: DEBUG");
        }

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