• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.android.tests.buildconfigtest;
2 
3 import android.app.Activity;
4 import android.os.Bundle;
5 import android.widget.TextView;
6 
7 import com.android.tests.buildconfigtest.lib1.Lib1;
8 
9 public class Main extends Activity
10 {
11     /** Called when the activity is first created. */
12     @Override
onCreate(Bundle savedInstanceState)13     public void onCreate(Bundle savedInstanceState)
14     {
15         super.onCreate(savedInstanceState);
16         setContentView(R.layout.main);
17 
18         if (BuildConfig.DEBUG) {
19             TextView tv = (TextView) findViewById(R.id.app);
20             tv.setText("App: DEBUG");
21         }
22 
23         TextView tv = (TextView) findViewById(R.id.lib1);
24         tv.setText("Lib: " + Lib1.getContent());
25     }
26 }
27