You should learn to read the logging and to debug your Android code.
Caused by: java.lang.NullPointerException
04-04 11:14:26.657: E/AndroidRuntime(382): at com.example.login.MainActivity.onCreate(MainActivity.java:36)
I'd be taking a closer look at line 36.
And I wouldn't wonder if that is the username you're asking for and the object
un
, which never gets initalized, is
null
at that point.
Which IDE are your using?
Eclipse is prefered. it's free. GET IT!
http://developer.android.com/tools/debugging/debugging-projects.html[
^]
Also please switch on line numbering in the eclipse-preferences (search there for "Text Editor" -> Show Line numbers)