Okay, so I am creating a test program (my version of "hello world" every time I start developing on a new platform) that flashes the numbers 0 through 500 on the screen rapidly. Here's what I have in my main Java file so far. Problem is, it won't display anything. Anyone know what is wrong?
I have some experience in C/C++ but I'm almost completely new to Java. Thanks! package com.mh.test; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class AndroidTest extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { TextView tv = new TextView(this); super.onCreate(savedInstanceState); for(int i=0; i >= 500; i++) { tv.setText(Integer.toString(i)); setContentView(tv); try { Thread.sleep(4000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---