I just started developing droif apps, but nothing will display, even though the dev center says IT WILL. can you guys take a look? I know the code may be disgusting.... but if you can help me..
publicvoid onCreate(Bundle savedInstanceState) {
System.out.println("Hallo"); // Things like this were for tests--none fired
super.onCreate(savedInstanceState);
Button button = new Button (this);
button.setText(" Click me! ");
button.setBackgroundColor(8);
button.setWidth(50);
button.setHeight(50);
button.setOnClickListener(new View.OnClickListener() {
publicvoid onClick(View v) {
System.out.println("Here!");
}
});
setContentView(button);
After all that (No errors), I still got only the blank android emulator diplaying "ANDROID". Any suggestions? I'm a newbie to Droid structure..
EDIT: It IS "public void", not "publicvoid"

LinkBack URL
About LinkBacks
Reply With Quote
