I have been reading Google’s android tutorial and I got a problem…
In the tutorial they explain the XML elements (EditText and Button) and in the end they say how to tun the program to see the button + the text field.
The problem is, that the emulator doesn’t show them.. just a black screen.
I even tried adding this line to the onCreate function –
System.out.println("Hello World!");
but still the emulator is showing only black screen..
Here’s the .java main file – http://pastebin.com/G5J9YjNe
And the XML files (I mentioned what code is what file) – http://pastebin.com/VnRwAfMW
What should I do?
Thanks a lot for everyone who will help!
does not print any thing on screen. it can seen on Consol. i tried below code and working fine for me.
// Main Activity
public class MainActivity extends Activity {
Layout /.xml
Manifest file ..
try this code and let me know what u see.
I tried your source code and it is working fine for me. see screen