package ua test import android app Activity import android os Bundle i

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
package ua.test;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
//import android.util.Log;
public class MainActivity extends Activity
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
int bgcolor = activity.getResources.getColor(R.color.bgcolor); //error
TextView tv = (TextView)findViewById(R.id.text1);
//tv.setText("Новый текст");
}
}