i am new to android development. i'm making a simple app, which has one activity. In this activity i'm trying to loop for t<100 and printing value of t in text view. But the problem is that my app shows me white screen, till t==100. When t==100 it changes the value of textView to 100 and shows me the screen. Below is the code i'm using:
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTheme(R.style.AppTheme);
setContentView(R.layout.activity_main);
String inputFilePath = "/storage/emulated/0/1.jpg";
for (int t = 0; t < 100; t++) {
TextView tv = (TextView)findViewById(R.id.textView3);
tv.setText("Welcome to android "+t);
}
}
}
What i'm expecting is that i should see main activity view from start of app and should see content being changed of textView3 on screen